Boost logo

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

error LNK2001: unresolved external symbol "class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > boost::program_options::arg"

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" );
("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?


Michael Marcin

Boost list run by bdawes at, gregod at, cpdaniel at, john at