Boost::program_options - Linking Issue

Using the following command lines on a linux box,
g++ -c -pipe -Wall -W -O2 -pipe -m64 -fexceptions -D_REENTRANT
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED
-I/usr/lib64/qt-3.3/mkspecs/default -I. -Idcs/improc2/adam/boost_1_33_1/
-I/usr/lib64/qt-3.3/include -I.moc/ -o .obj/first.o first.cpp
g++ -o cmdLineTest .obj/first.o -L/usr/lib64/qt-3.3/lib
-L/usr/X11R6/lib64 -L/dcs/improc2/adam/boost_1_33_1/stage/lib/
-lboost_program_options-gcc -lqt-mt -lXext -lX11
-lm -lpthread
I get the following error output when trying to compile the first.cpp
example provided with the library
.obj/first.o(.text+0x57): In function `main':
: undefined reference to
`boost::program_options::options_description::options_description(std::basic_string

Have justed tested using version 1_32, with obvious adjustments to make file and this works fine. Therefore whoever is responsible for creating program_options library there is some bugs when compiling using g++ 3.4.4 Adam
participants (2)
-
Adam Hartshorne
-
Adam Teasdale Hartshorne