Boost logo

Boost-Build :

From: Claudius Kehrhahn (claudius.kehrhahn_at_[hidden])
Date: 2008-02-21 18:04:59

I am a newbie to python, MinGW and eclipse. My background: I have a lot
experience in c++ with Visual Studio and embedded programming with other

My final goal is binding python with c++.

So, learning python is no really problem. I installed the MinGW 3.4.2
package, python 2.5, boost_1_34_1 and eclipse 3.3 with cdt 4.x.
I set a lot of constants for the path's to lib and include directories,
compiled the boost libraries/dlls with mingw.
Then I started the tutorial of boost with the regex example. I had no
problems with bjam as well with the following commands

g++ -I P:\Programme\boost_1_34_1 example.cpp -o example -L
P:\Programme\boost_1_34_1\lib\ -lboost_regex-mgw34-mt-d-1_34_1
g++ -I P:\Programme\boost_1_34_1 example.cpp -o example

but when I compiled and linked the example with eclipse I got the output:

**** Internal Builder is used for build ****
g++ -IP:\Programme\boost_1_34_1 -O0 -c -fmessage-length=0 -oexample.o
g++ P:\Programme\boost_1_34_1\lib\libboost_regex-mgw34-mt-d-1_34_1.a
-oTest_boost_libs.exe example.o
boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign(char
const*, char const*, unsigned int)]+0x22):example.cpp: undefined
reference to `boost::basic_regex<char, boost::regex_traits<char,
boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*,
unsigned int)'
collect2: ld returned 1 exit status
Build error occurred, build is stopped

Furthermore I got lot of problems when I try to compile the python
tutorial 'hello.cpp'. I got massive compiler errors for the headerfiles
in ..\boost\python\

Can anyone give me any hint how to continue?

Thanks in advance.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at