|
Boost : |
From: Richard Hadsell (hadsell_at_[hidden])
Date: 2005-09-13 16:02:15
We are using Boost 1.33.0 with g++ 3.4.4 on an Opteron machine. I
compiled .a archive libraries for our users to link to. The compile
options we normally build our software with are '-march=opteron -m64
-ansi -mieee-fp -fPIC' along with '-O2' or '-g'.
One of our users ran into this problem trying to link his program (I
shortened some of our names):
...: In function `bssProgramOptions::parse_config_file(char const*)':
x.cc:252: undefined reference to `boost::program_options::basic_parsed_options<char> boost::program_options::parse_config_file<char>(std::basic_istream<char, std::char_traits<char> >&, boost::program_options::options_description const&)'
...(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcEC1ERKSt6vectorISsSaISsEE+0x27): In function `boost::program_options::basic_command_line_parser<char>::basic_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&)':
.../boost/program_options/detail/parsers.hpp:32: 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&)'
...(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcE7optionsERKNS0_19options_descriptionE+0x19): In function `boost::program_options::basic_command_line_parser<char>::options(boost::program_options::options_description const&)':
.../boost/program_options/detail/parsers.hpp:49: undefined reference to `boost::program_options::detail::cmdline::set_options_description(boost::program_options::options_description const&)'
...(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcE10positionalERKNS0_30positional_options_descriptionE+0x19): In function `boost::program_options::basic_command_line_parser<char>::positional(boost::program_options::positional_options_description const&)':
.../boost/program_options/detail/parsers.hpp:59: undefined reference to `boost::program_options::detail::cmdline::set_positional_options(boost::program_options::positional_options_description const&)'
...(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcE5styleEi+0x17): In function `boost::program_options::basic_command_line_parser<char>::style(int)':
.../boost/program_options/detail/parsers.hpp:67: undefined reference to `boost::program_options::detail::cmdline::style(int)'
...(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcE3runEv+0x2b): In function `boost::program_options::basic_command_line_parser<char>::run()':
.../boost/program_options/detail/parsers.hpp:84: undefined reference to `boost::program_options::detail::cmdline::run()'
...(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcEC1EiPPc+0x4e): In function `boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char**)':
.../boost/program_options/detail/parsers.hpp:42: 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
Does anyone recognize these symptoms?
-- Dick Hadsell 914-259-6320 Fax: 914-259-6499 Reply-to: hadsell_at_[hidden] Blue Sky Studios http://www.blueskystudios.com 44 South Broadway, White Plains, NY 10601
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk