[C++-sig] Building Boost.Python on MingW(win98)

Zhang Le ejoy at 163.com
Wed Jun 4 15:24:47 CEST 2003


Hello, 
  I have some problems with building BPL on a win98 with mingw.
  After the boost_python.lib is built, bjam failed to build
  boost_python.dll with the following command (bjam -d3)

 g++
 -Wl,--exclude-symbols,_bss_end__:_bss_start__:_data_end__:_data_start__
 -Wl,--enable-auto-image-base -W
 l,--out-implib,..\..\..\libs\python\build\bin\boost_python.dll\mingw\release\runtime-link-dynamic\boost_python
 .lib  -s -shared  -o
 "..\..\..\libs\python\build\bin\boost_python.dll\mingw\release\runtime-link-dynamic\boost
 _python.dll"  -Lc:\Python22\libs "...some obj file name here"
 \object_operators.obj"   -lpython22  -Wl, -rpath-link, .

 
c:\MinGW\bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lpython22

But I have seen "-Lc:\Python22\libs" in the g++ command line. And even after I copy
python22.lib from c:\Python22\libs to the building directory the error
is still there.

Am I missing something? I use python 2.2.3 with mingw2.0(gcc 3.2).
-- 
                                     Sincerely yours,
                                            Zhang Le




More information about the Cplusplus-sig mailing list