|
From: Ferdinando A. <qf...@am...> - 2009-08-27 12:39:41
|
On Thu, Aug 27, 2009 at 9:56 AM, Dima<dim...@go...> wrote: > - I've chosen the current version which is VC++ 2008, but the 2005 Version > should be equivalent? no it isn't. As Piter pointed out VC++ 2005 Express missed the SDK which had to be downloaded separately. Anyway VC++ 2005 *Express* has been discontinued by Microsoft as of March 2009, so I would just get rid of any reference to it > - I'd welcome some slides for compiling boost without using precompiled > versions. But someone else has to add it Please find below my notes: adapt it as you prefer. > - Boost usage: Yes, I personally have the include directories in VC++ > defaults, but a first time > user might want to test a bit without adding something that is then used in > all projects by default. I second Piter's suggestion for adding boost to VC++ directories, instead of project settings. IMO the former should be the default, the latter being an "advanced hacking approach" ciao -- Nando ====================== In case you use the free Microsoft Visual C++ 2008 Express Edition (a.k.a VC9.0): - download from boost.org the latest boost libraries (boost_1_39_0.zip at the time of this writing). Unzip the file and you get a folder named boost_1_39_0 - download from boost.org the latest boost-jam (boost-jam-3.1.17-1-ntx86.zip at the time of this writing), unzip it and put bjam.exe into the boost_1_39_0 folder above - run the Visual Studio 2008 Command Prompt. You can find it under Start menu | Programs | Microsoft Visual C++ 2008 Express Edition | Visual Studio Tools | Visual Studio 2008 Command Prompt - change dir to your boost_1_39_0 folder, then run the following command: bjam --build-type=complete --toolset=msvc-9.0 install - Go for a tea, as the above command will take a long time. At the end you will get the header files in C:\Boost\include\boost-1_39 and the compiled binaries in C:\Boost\lib. - In Visual C++ 2008 Express Edition go to Tools | Options | Projects and Solution | VC++ Directories. Show directories for "Include Files" and add C:\Boost\include\boost-1_39. Show directories for "Library Files" and add C:\Boost\lib. - You're done! |