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).
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.
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.
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\.
Built with the latest SVN repository build and it seems to work using the above commands.
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