C++ – Error LNK1104 cannot open file ‘libboost_filesystem-vc141-mt-gd-1_65_1.lib’

boostboost-filesystemccompiler-errors

I cannot seem to solve this issue. I would like to use boost but continue to get the error LNK1104 cannot open file 'libboost_filesystem-vs141-mt-gd-1_65_1.lib'. I have followed the steps i.e:
1. Running the bat
2. Running the b2 (originally bjam)
3. Linked the files.
After receiving the error I did digging and have changed a few other things. See images below for a better understanding of what I have completedThis is the VC++ where I added the boost_path.This is the linker

I appreciate all answers in the future, and thank you for taking the time.

Best Answer

the most common causes of this error are:

1- Architecture. The .lib is x64 and the build is 32 bits or viceversa (.libs are 32 and build is x64).

2- Path to the files. Check the boost path is the same. If you are using the precompiled libraries the path is similar to .....\boost_1_65_1\lib64-msvc-14.1 But if you have compiled, it will be like stage\lib. Search for it in the explorer and cut and paste the path.

Regards