Boost logo

Boost Users :

From: Adam Teasdale Hartshorne (adam_at_[hidden])
Date: 2006-04-25 11:28:17


Olaf van der Spek wrote:
> On 4/25/06, Adam Teasdale Hartshorne <adam_at_[hidden]> wrote:
>
>>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.
>
>
> Did you include -lboost_program_options on the g++ command line?

Yes I stated my make file, and I have tried the following as well, with
the same result.

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 -lboost_filesystem-gcc -lqt-mt -lXext -lX11
-lm -lpthread

Adam


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net