Problem with Swig/C++/Python and python21.lib

Thomas Heller thomas.heller at ion-tof.com
Tue Oct 2 04:48:01 EDT 2001


"Sébastien" <seb.goldstein at caramail.com> wrote in message news:2a8f832c.0110020032.3a48fba6 at posting.google.com...
> Hey,
>
> I'm currently using Swig to integrate python and C++.
> I work with Win2000, MSVC++ 5.0 and Python 2.1
>
> From my test.h, test.cpp and test.i, Swig
> generates a test_wrap.cpp.
> I include in the project settings all the necessary directories.
> I try to build a release version and I have this error message :
>
>
> --------------------Configuration: test - Win32
> Release--------------------
> Compiling...
> test.cpp
> test_wrap.cpp
> Linking...
> c:\Python21\libs\python21.lib : fatal error LNK1106: invalid file or
> disk full: cannot seek to 0x3bb5cb9b
> Error executing link.exe.
>
> test.dll - 1 error(s), 0 warning(s)
>
This has been reported before, IIRC the python21.lib is built with MSVC6.0
and has a different format not understood by MSVC5.0. You should
search c.l.p archives for the solution, maybe you have to upgrade
your compiler to the latest and greatest servie pack?

Thomas





More information about the Python-list mailing list