I wanted to use boost::program_options. After I installed boost, I think that I have to build separatly program_options (http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html). But I don't know how to do it.
I am trying to compile the C:\Program Files\boost\boost_1_42\libs\program_options\example\first.cpp (http://www.boost.org/doc/libs/1_42_0/doc/html/program_options/tutorial.html) but probably due to I didn't build the library I have this error:
LINK : fatal error LNK1104: cannot open file 'libboost_program_options-vc90-mt-gd-1_42.lib'
EDIT: I used the installers supplied by BoostPro Computing so I skipped the installation of the binaries (http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#install-visual-studio-binaries)
EDIT: I also followed the instructions at http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#build-from-the-visual-studio-ide
After reading the Boost 1.54 Getting Started on Windows guide these are the steps that you should take (program_options
is a header only library). You need to have a MSVC compiler installed.
Download Boost's source code from here and install it.
From a command line (preferably the Developer Command Prompt for VS):
bootstrap.bat
bjam.exe --build-type=complete msvc stage --with-program_options
This will finish in a couple of minutes and that's it! The libraries are located in the directory .\bin.v2\libs\program_options\build
.
BTW you could see which libraries you can build using bjam --show-libraries
.
I've followed these steps and it worked pretty well. That is to build the few boost libraries that must be built separately.
I suggest you read the entire document.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With