How to install boost on windows 7 using VS

Therefore, I try to integrate Boost with Visual Studio (2008) on Windows 7 all day. First, I caught it twice How to use Boost in Visual Studio 2010 .

I searched for everything (at least 3 of them) and they didn't work for anyone.

Some people suggested using this one: www.boostpro.com/download/ , but the link is not active. Someone suggested changing the runtime library to a multi-threaded DLL, but also did not work.

I'm just trying to turn it on #include <boost/thread.hpp>and got this error

Fatal error LNK1104: Unable to open libboost_thread-vc90-mt-s-1_53.lib file.

Before installing Boost, the error was that it could not be found thread.hpp, so it seems that Boost is installed somewhat correctly.

The problem is that the libraries were not created while using the tutorial. How can I create them manually?

+5
source share
4 answers

Use this command: bjam --build-dir = build-directory toolset = toolset-name --build-type = complete stage this will create the libraries manually. Then add the new directory to the path to additional libraries

as indicated in this link: http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#or-build-binaries-from-source

+1
source

, one-click boost install, - . , , Boost.Thread, , .lib . , , . , , Boost.Thread. , # 6 .

+3

:

http://www.codeproject.com/Articles/11597/Building-Boost-libraries-for-Visual-Studio

  • , BJam ( , boostrapper.bat).
  • How to create libraries, for example. bjam toolset = msvc-11.0 variant = debug threading = multi link = static (in this case, a multi-threaded, statically linked version of VS2012 debugging).
  • It also contains assemblies, but I have not tried them.
  • It has additional information on how to specify which C-Runtime to use.
+1
source

All Articles