boost::program_options

Z

zade

Hi all
boost::program_options needs be builled into libraries, static or
dynamic. I use MSVC7.1 to build the boost::program_options for my
project .In my .cpp file , I write:

namespace po = boost::program_options;

struct CommandLineParser
{
CommandLineParser()
:desc("options")
{}
po::eek:ptions_description desc;
po::variables_map vm;
};
But the compiler says error:
compiling....
Linking to lib file: libboost_program_options-vc71-mt-gd-1_33_1.lib
Linking...
commandlineparser.obj : error LNK2019: unresolved symbols "public:
__thiscall
boost::program_options::eek:ptions_description::eek:ptions_description(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"

it is clear that the lib"libboost_program_options-vc71-mt-
gd-1_33_1.lib" is linked, so why??

Thanks
 
Z

Zeppe

zade said:
Hi all
boost::program_options needs be builled into libraries, static or
dynamic. I use MSVC7.1 to build the boost::program_options for my
project .In my .cpp file , I write:

The question is OT here, you should ask in a Microsoft related ng.
Anyway, have you built your libraries with the same version of the
compiler that you are using for your program? Are you linking the
correct version of the libraries (i.e., same threading model, same Debug
information, and so)?

Regards,

Zeppe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top