Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build boost on visual studio 2013 XP toolset

I need to build boost (1.55) with VS2013, but the regular toolset (toolset=msvc-12.0) doesn't work on XP. There is a different toolset for XP (which you can change in VS itself).

Does anyone know the toolset string I need to use in order to compile boost for XP using msvc-12.0 ?

EDIT: I'm using b2.exe

Thanks You!

like image 874
TCS Avatar asked Feb 04 '14 16:02

TCS


People also ask

How to build boost with Visual Studio Tools?

Building Boost have never been easier. Just double click this .bat-file and wait for it to be finished. Put this in a file called build_boost_1_58_vs2013.bat and place it next to the boost_1_58_0 folder. The first line will add the Visual Studio tools to PATH, in essence, you can just double click this file to build boost.

What is build tools 2013 and how to use it?

Build Tools 2013 provides the essential tools for building managed applications. If you don't have Visual Studio installed on your computer, you can use Build Tools 2013 to build managed applications. The Visual Basic and C# compilers are also included in this download.

How do I add Visual Studio Tools to my project?

The first line will add the Visual Studio tools to PATH, in essence, you can just double click this file to build boost. For a Windows user, it can’t get much easier than this. Then add stage/$ (Platform)/lib as additional library directory in project settings for all configuration types and for all platforms.

How do I compile anything in boost?

To compile anything in Boost, you need a directory containing the boost subdirectory in your #include path. Specific steps for setting up #include paths in Microsoft Visual Studio follow later in this document; if you use another IDE, please consult your product's documentation for instructions.


1 Answers

Check this link: https://web.archive.org/web/20130208113614/http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx

original link (dead): http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx

It explains how to compile in command line using cl.exe and choose XP toolset.

When compiling boost, before starting the build itself using b2.exe, insert all required parameters in order to choose 120_xp toolset.

like image 138
TCS Avatar answered Oct 15 '22 09:10

TCS