简体   繁体   中英

Boost can not find lib

I'm interrested in unit test so i decided to install boost to make some unit tests included in that libraries.

First I've installed this: http://sourceforge.net/projects/boost/files/boost-binaries/1.57.0/ Then I've changed paths in my VS2013 to find headers and libs(libs at linker options). Then I had a problemem with x64 machine, so I did that: fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

And right now I got a windows-massage, after compilation when program is about to run, which sounds like: It's not possible to run a program, becouse in that computer it is not able to find boost_unit_test_framework-vc120-mt-1_57.dll. Try to reinstal program, to repair that problem.

But I got that file in my C:\\lib\\boost_1_57_0\\lib64-msvc-12.0 catalog.

what can I do?

In order to make the system to find a .dll file at runtime of a program, you need to add the directory where the .dll is located to the PATH environment variable. Eg from the console (before running a program)

C:\Users\XYZ> set PATH="%PATH%;c:\directory_of_dll"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM