|
Boost : |
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2008-06-25 15:35:10
While using boost 1.35 with msvc 2008 and dynamic linking I'm getting
error LNK2001: unresolved external symbol "public: static unsigned int
const
boost::program_options::options_description::m_default_line_length"
(?m_default_line_length_at_options_description_at_program_options_at_boost@@2IB)
error LNK2001: unresolved external symbol "class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > boost::program_options::arg"
(?arg_at_program_options_at_boost@@3V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@A)
While compiling:
namespace po = boost::program_options;
const char* configFilename = "demo.cfg";
std::string serverAddress;
unsigned short serverPort;
po::options_description configFile( "Configuration File Options" );
configFile.add_options()
("server-address", po::value(&serverAddress), "ip address of the server")
("server-port", po::value(&serverPort), "the server listening port")
;
std::ifstream stream( configFilename );
po::variables_map vm;
po::store(po::parse_config_file(stream, configFile), vm);
po::notify( vm );
Is this a bug or a build problem?
Thanks,
Michael Marcin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk