Swig-Python-Cygwin-Windows-Problem

Tim Roberts timr at probo.com
Sun Feb 23 06:36:33 CET 2003


Jason Tishler <jason at tishler.net> wrote:
>
>On Sat, Feb 22, 2003 at 12:58:31AM +0100, Manfred Nowak wrote:
>> gcc -shared   $SWIGMOD'.o'  $SWIGMOD'_wrap.o' \
>>      -L /lib/python2.2/config  -lpython2.2.dll  -lc -o '_'$SWIGMOD'.dll'
>                                 ^^^^^^^^^^^^^^^
>
>You should not link directly with the DLL, libpython2.2.dll.  You should
>instead link to the import library, libpython2.2.dll.a, by using
>-lpython2.2 above.

"-lpython2.2" expands to libpython2.2.a.
"-lpython2.2.dll" expands to libpython2.2.dll.a.

Thus, I think his command line is, in fact, correct.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.




More information about the Python-list mailing list