ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
newbie: python/C extensions in cygwin
by Mark Higgins other posts by this author
Jan 25 2003 6:18PM messages near this date
Re: How to download a file only once | Re: newbie: python/C extensions in cygwin
Probably a dumb question, but googling around isn't turning up any 
obvious solutions: I've got a module I built in linux, and I'm trying to 
compile it under cygwin in window xp.

I changed .so's to .dll's, and other dlls are working fine.

However, when I try to compile my module:

g++ optmodule.cpp -g -shared -o optmodule.dll -lquant -L.

I'm getting the following link errors:

/cygdrive/c/DOCUME~1/Mark/LOCALS~1/Temp/ccH5wdB9.o(.text+0x52): In 
function `_Z12opt_BSOptionP7_objectS0_':
/src/Python/loki/optmodule.cpp:9: undefined reference to `_PyArg_Parse'
/cygdrive/c/DOCUME~1/Mark/LOCALS~1/Temp/ccH5wdB9.o(.text+0xaa):/src/Python/loki/optmodule.cp
p:19: 
undefined reference to `_Py_BuildValue'
/cygdrive/c/DOCUME~1/Mark/LOCALS~1/Temp/ccH5wdB9.o(.text+0xf2): In 
function `initopt':
/src/Python/loki/optmodule.cpp:29: undefined reference to `_Py_InitModule4'
collect2: ld returned 1 exit status
make: *** [optmodule.dll] Error 1

Looks like I need to add something to my LD_LIBRARY_PATH... but I'm not 
sure what. Anyone care to enlighten my ignorance on this?

Thanks in advance!

-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Mark Higgins
Mark Higgins
Jason Tishler

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved