Boost logo

Boost Users :

From: Moritz Moeller (mnm_at_[hidden])
Date: 2007-06-05 07:59:27


I've got a linking issue with this lib on Linux. If I don't specify
-lboost_program_options, I naturally get several pages of missing
symbols. No surprise there.

However, if I /do/ specify it, I still get /some/!?

________________________________________________________________________________
Creating bin/baker
g++ obj/mesh.o obj/dnHumpBaker.o
-L/hosts/norwich/user_data/ritz/usr/local/3delight-6.5.24/Linux-x86_64/lib
-l3delight -lboost_program_options -o bin/baker
obj/dnHumpBaker.o(.text+0xb84): In function `main':
dnHumpBaker.cpp: undefined reference to
`boost::program_options::options_description::options_description(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int)'
obj/dnHumpBaker.o(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcE7optionsERKNS0_19options_descriptionE[boost::program_options::basic_command_line_parser<char>::options(boost::program_options::options_description
const&)]+0x15): In function
`boost::program_options::basic_command_line_parser<char>::options(boost::program_options::options_description
const&)':
dnHumpBaker.cpp: undefined reference to
`boost::program_options::detail::cmdline::set_options_description(boost::program_options::options_description
const&)'
obj/dnHumpBaker.o(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcE10positionalERKNS0_30positional_options_descriptionE[boost::program_options::basic_command_line_parser<char>::positional(boost::program_options::positional_options_description
const&)]+0x5): In function
`boost::program_options::basic_command_line_parser<char>::positional(boost::program_options::positional_options_description
const&)':
dnHumpBaker.cpp: undefined reference to
`boost::program_options::detail::cmdline::set_positional_options(boost::program_options::positional_options_description
const&)'
obj/dnHumpBaker.o(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcE3runEv[boost::program_options::basic_command_line_parser<char>::run()]+0x40):
In function
`boost::program_options::basic_command_line_parser<char>::run()':
dnHumpBaker.cpp: undefined reference to
`boost::program_options::detail::cmdline::run()'
obj/dnHumpBaker.o(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcEC1EiPPc[boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int,
char**)]+0x3e): In function
`boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int,
char**)':
dnHumpBaker.cpp: undefined reference to
`boost::program_options::detail::cmdline::cmdline(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&)'
collect2: ld returned 1 exit status
make: *** [baker] Error 1


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