Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I compile Boost with VS2013 (64-bit)

I'm using the following command to compile Boost 1.55 beta 1:

b2 --toolset=msvc-12.0 architecture=x86 address-model=64 stage

The result is a bunch of these errors:

error C3861: 'assert_not_arg': identifier not found

There is a list of supposed patches to make boost work with VS2013 here, but I have no idea how to use them. Apparently a similar problem is documented here, but I was wondering if anyone had had success building Boost 64-bit for VS2013 (I don't mind using an older version of boost, but they don't seem to support the MSVC 12.0 compiler).

like image 732
quant Avatar asked Nov 02 '13 08:11

quant


People also ask

How do you compile a Boost?

To compile anything in Boost, you need a directory containing the boost/ subdirectory in your #include path. depending on your preference regarding the use of angle bracket includes. Don't be distracted by the doc/ subdirectory; it only contains a subset of the Boost documentation. Start with libs/index.

How do I use Visual Studio code in Boost library?

Linking the Boost libraries on Visual Studio (Note: In case your project builds a static library, the “Linker” menu will be shown as “Librarian”.) Select the drop-down button and then click <Edit..>. Add the following value: C:\Program Files\boost\boost_1_76_0\bin\$(PlatformTarget)\lib , and hit OK.

How do I link my Boost library to Visual Studio?

6.1 Link From Within the Visual Studio IDE Right-click example in the Solution Explorer pane and select Properties from the resulting pop-up menu. In Configuration Properties > Linker > Additional Library Directories, enter the path to the Boost binaries, e.g. C:\Program Files\boost\boost_1_55_0\lib\.


1 Answers

Built with the latest SVN repository build and it seems to work using the above commands.

like image 61
quant Avatar answered Sep 29 '22 03:09

quant