Boost logo

Boost Users :

From: Magnus Therning (magnus_at_[hidden])
Date: 2007-02-02 06:07:40


I've just installed the pre-built Boost libraries for Windows offered by
boost-consulting.com. I started playing with program_options.

I use the following options:

  options.add_options()
    ("help,h", "display this help message and exit")
    ("version,v", "output version information and exit")
    ("silly,s", po::value<int>(), "silly option")
    ;

When compiling that code with Visual Studio 8.0 I get warnings about

 - 'boost::program_options::options_description' : assignment
   operator could not be generated

 - 'boost::any::holder<ValueType>' : assignment operator could not be generated

The latter one seems to be the cause for a linking error:

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

g++ works just fine, no warnings, no link errors.

Any suggestions on how to solve this?

M


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