R
R
rusianvodka2014-05-04 21:03:25
C++ / C#
rusianvodka, 2014-05-04 21:03:25

Boost connecting and working in VS2013?

Hello Ladies and Gentlemen, please tell me the solution to this problem.
When connecting boost to an MFC project.
Writes that it is not possible to open libboost_regex-vc120-mt-gd-1_55.lib
My path (maybe something is wrong?)
win8.1 VS 2013.
I downloaded the Boost 1.55 library.
With the help of the developer command line for VS2013, I moved to the folder with boost.
Introduced bootstrap.
After I collected only regexp with the b2 --with-regex command.
In the project properties, in the include directory, I entered the address of the folder where boost is located D:\boost_1_55_0
In the library directory, I entered D:\boost_1_55_0\stage\lib.
After assembly, it displays an error about failure to open the lib.
Googled but none of the methods helped.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AxisPod, 2014-05-05
@AxisPod

You also need to include the library itself, to check in the .cpp file, write
#pragma comment(lib, "the full name of the library with the extension, but without the path");
If it takes off, then in the linker settings, specify in Additional Libraries, and yes, you need to build the boost separately in debug and release form and, accordingly, connect it for debug and release.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question