Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old April 20th, 2007, 02:55 PM
zade
Guest
 
Posts: n/a
Default boost::program_options

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::options_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::options_description::optio ns_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

  #2  
Old April 20th, 2007, 04:15 PM
Zeppe
Guest
 
Posts: n/a
Default Re: boost::program_options

zade wrote:
Quote:
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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles