C++ | Solve a series of problems such as the x86 version LNK1104 cannot open the file "libboost_random-vc140-mt-1_61.lib"

When compiling the C++ x86 version of the SDK, this error was reported: LNK1104 could not open the file "libboost_random-vc140-mt-1_61.lib". I looked for a circle of boost_1_61_0-msvc-14.0-32.exe and failed to find it. The solution:

1. Download the compiled library boost_1_67_0-msvc-14.0-32.exe, URL: https://dl.bintray.com/boostorg/release/1.67.0/binaries/ , download and install.

2. There is the library we need in lib32-msvc-14.0, just copy it out and change the name. Need to pay attention to the following points:

1. What is needed is the library starting with boost or the library starting with libboost, and the library starting with libboost is at the bottom of the folder. The beginning of lib is a static library, and the beginning of boost is a dynamic library.

2. The name contains gd, which means the debug version;

3. The name contains s, which means static link;

4. The name contains mt, which means multithreading

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_39766005/article/details/109630553