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

David Abrahams dave at boost-consulting.com
Fri Jun 6 13:08:10 CEST 2003


Zhang Le <ejoy at 163.com> writes:

> 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).

You need to create libpython22.a with the first two steps detailed here:

http://www.python.org/doc/current/inst/non-ms-compilers.html#SECTION000312000000000000000

HTH,
-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list