Boost logo

Boost Users :

From: Simen Kvaal (simen.kvaal_at_[hidden])
Date: 2006-01-06 07:16:56


Dear all,

I have problems with the program_options library. I am using boost 1.33.1
and gcc 3.2.3, and I notice that there are others with the same problem.
However, I cannot find a reference to with a solution anywhere.

Stated simply: My programs (even the example programs included with boost
1.33.1) using program_options do not link!

For example (gcc 3.2.3):

$ g++ -o first.x first.cpp
/tmp/ccM0BLhg.o(.text+0x4a): 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&, unsigned int)'

[ ... and a dozen more similar errors ... ]

(As far as I can see, all header files in boost/program_options/ are
included in boost/program_options.hpp.)

I would appreciate any help with this.

Regards,
Simen Kvaal.

-- 
---- Simen Kvaal -- Ph.D student --------+-------------------------
   Centre of Mathematics for Applications | cell:   +47 90199552
         Room 1039, N.H.Abel's House, UiO | office: +47 22855681
             http://folk.uio.no/simenkva/ | simen.kvaal_at_[hidden]

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