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
Re: newbie: python/C extensions in cygwin
by Mark Higgins other posts by this author
Jan 26 2003 2:42AM messages near this date
newbie: python/C extensions in cygwin | Re: newbie: python/C extensions in cygwin
Ah - found the prob - cygwin stuck libpython2.2.dll into /bin instead
of some more reasonable directory like /lib or /usr/lib. So I needed
-lpython2.2 and -L/bin in the compile line.

Mark Higgins wrote:
>  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.
cpp: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