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"
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"
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
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