Boost logo

Boost Users :

From: Adam Hartshorne (adam_at_[hidden])
Date: 2006-04-26 20:39:43


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<char,

std::char_traits<char>, std::allocator<char> > const&)'
.obj/first.o(.gnu.linkonce.t._ZNK5boost15program_options25basic_command_line_parserIcE3runEv+0x5):

In function
`boost::program_options::basic_command_line_parser<char>::run() const':
: undefined reference to
`boost::program_options::common_command_line_parser::run() const'
.obj/first.o(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcEC1EiPPc+0x42):

In function
`boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int,

char**)':
: undefined reference to
`boost::program_options::common_command_line_parser::common_command_line_parser(std::vector<std::basic_string<char,

std::char_traits<char>, std::allocator<char> >,
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > const&)'

And help would be greatly appreciated,

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