Hi All,
I am having some trouble compiling the examples for the program_options
library on a linux box.
I following is the output of my attempt to try and compile the first.cpp
example. I obviously understand that error message is due to the
compiler been unable to see the appropriate function in the given
libraries. I therefore assume I should be including so other libraries,
but I don't know which ones are needed. Interestingly I can get the
simple_ls.cpp example to compile and function ok.
Any help would be much appreciated,
Adam
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_filesystem-gcc-d-1_33_1 -lboost_program_options-gcc-1_33_1
-lqt-mt -lXext -lX11 -lm -lpthread
.obj/first.o(.text+0x57): In function `main':
: undefined reference to
`boost::program_options::options_description::options_description(std::basic_string