Z
zade
Hi all
boost:
rogram_options needs be builled into libraries, static or
dynamic. I use MSVC7.1 to build the boost:
rogram_options for my
project .In my .cpp file , I write:
namespace po = boost:
rogram_options;
struct CommandLineParser
{
CommandLineParser()
:desc("options")
{}
po:
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:
rogram_options:
ptions_description:
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
boost:
dynamic. I use MSVC7.1 to build the boost:
project .In my .cpp file , I write:
namespace po = boost:
struct CommandLineParser
{
CommandLineParser()
:desc("options")
{}
po:
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:
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