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;
But the compiler says error:
Linking to lib file: libboost_program_options-vc71-mt-gd-1_33_1.lib
commandlineparser.obj : error LNK2019: unresolved symbols "public:
std::allocator<char> > const &)"
it is clear that the lib"libboost_program_options-vc71-mt-
gd-1_33_1.lib" is linked, so why??
> 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)?
|All times are GMT. The time now is 10:07 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.