Hey Seems that I've run into a pretty common problem people have when they try to install Boost.Python: I get those error messages saying that Python.h and patchlevel.h Details: - NT system, installed mingw-2.95.2 (exe in my path), boost_1_28_0. - within f:\boost_1_28_0 directory I type: bjam -sBOOST_ROOT=. -sTOOLS="gcc" -sPYTHON_ROOT=c:\python21 - I get the missing header files errors. Lots of them. Any clues? There seem to be postings about this problem but I couldn't find a solution. Thanks in advance Christos
GCC is the wrong toolset to use for mingw. Use the mingw toolset instead. If you use the GCC toolset, cygwin is assumed, and the Python headers are expected to follow the unix layout protocol. "Christos Nicolaou" <nicolaou@bioreason.com> wrote in message news:3D262803.998E34D7@bioreason.com...
Hey
Seems that I've run into a pretty common problem people have when they try to install Boost.Python: I get those error messages saying that Python.h and patchlevel.h
Details: - NT system, installed mingw-2.95.2 (exe in my path), boost_1_28_0. - within f:\boost_1_28_0 directory I type: bjam -sBOOST_ROOT=. -sTOOLS="gcc" -sPYTHON_ROOT=c:\python21 - I get the missing header files errors. Lots of them.
Any clues? There seem to be postings about this problem but I couldn't find a solution.
Thanks in advance Christos
GCC is the wrong toolset to use for mingw. Use the mingw toolset instead. If you use the GCC toolset, cygwin is assumed, and the Python headers are expected to follow the unix layout protocol.
"Christos Nicolaou" <nicolaou@b...> wrote in message news:3D262803.998E34D7@b...
Hey
Seems that I've run into a pretty common problem people have when
Thanks David. Replaced "gcc" with "mingw" and it seemed to have taken care the compiling part. However, I get linker related errors. Relate to not being able to find boost_python.dll and boost_python.lib. And some warnings unrecognized options "-shared" and "--exclude-symbols" Any hints? Thanks Christos ps. sample error messages: mingw-Link-action libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynami c\boost_python.dll libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynami c\boost_python.lib ld: unrecognized option `--exclude-symbols' g++: unrecognized option `-shared' g++ -Wl,--exclude-symbols,_bss_end__:_bss_start__:_data_end__:_data_start_ _ -Wl,--out-implib,libs\python\build\bin\boost_python.dll\mingw\debug\ru ntime-link-dynamic\boost_python.lib -g -shared -o "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\boost_python.dll" -Lc:\python21\libs -Lc:\python21\PCBuild "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\types.obj" "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\classes.obj" "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\conversions.obj" "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\extension_class.obj" "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\functions.obj" "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\init_function.obj" "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\module_builder.obj" "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\objects.obj" "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\cross_module.obj" "libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynam ic\errors.obj" -lpython21 -Wl,-rpath-link,. ...failed mingw-Link-action libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynami c\boost_python.dll libs\python\build\bin\boost_python.dll\mingw\debug\runtime-link-dynami c\boost_python.lib... ...skipped <libs!python!build\boost_python.dll\mingw\debug\runtime-link-dynamic>b oost_python.dll for lack of <libs!python!build\boost_python.dll\mingw\debug\runtime-link-dynamic>b oost_python.lib... ...skipped <!libs!python!build!bin-stage>boost_python_debug.dll for lack of <libs!python!build\boost_python.dll\mingw\debug\runtime-link-dynamic>b oost_python.dll... ...skipped <!libs!python!build!bin-stage>boost_python_debug.lib for lack of <libs!python!build\boost_python.dll\mingw\debug\runtime-link-dynamic>b oost_python.lib... mingw-Link-action libs\python\build\bin\boost_python.dll\mingw\release\runtime-link-dyna mic\boost_python.dll libs\python\build\bin\boost_python.dll\mingw\release\runtime-link-dyna mic\boost_python.lib ld: unrecognized option `--exclude-symbols' g++: unrecognized option `-shared' ... --- In Boost-Users@y..., "David Abrahams" <david.abrahams@r...> wrote: they
try to install Boost.Python: I get those error messages saying that Python.h and patchlevel.h
Details: - NT system, installed mingw-2.95.2 (exe in my path), boost_1_28_0. - within f:\boost_1_28_0 directory I type: bjam -sBOOST_ROOT=. -sTOOLS="gcc" -sPYTHON_ROOT=c:\python21 - I get the missing header files errors. Lots of them.
Any clues? There seem to be postings about this problem but I couldn't find a solution.
Thanks in advance Christos
participants (3)
-
Christos Nicolaou
-
David Abrahams
-
sopothe