cannot open file 'boost_filesystem-vc120-mt-gd-1_59.lib'

Mar 23, 2016 at 9:35 AM

  • 1. Downloaded the boost_1_59_0 library

  • 2. Build the boost library as below:

Run the below commands in Command Prompt:


bjam toolset=msvc-12.0 variant=debug threading=multi link=shared define=_BIND_TO_CURRENT_VCLIBS_VERSION

bjam toolset=msvc-12.0 variant=release threading=multi link=shared define=_BIND_TO_CURRENT_VCLIBS_VERSION

Included the below paths in the OpenCppCoverage properties page

· Properties ->Configuration Properties ->C/C++ ->General -> Additional Include Directories

Browsed path -> D:\Boost\boost_1_60_0

· Properties ->Configuration Properties ->Linker -> Additional Library Directories

Browsed path-> D:\Boost\boost_1_60_0\stage\lib

3. Build the solution

Got the below error:

error LNK1104: cannot open file 'boost_filesystem-vc120-mt-gd-1_59.lib' .
.Kindly through light to resolve this link error.

Mar 30, 2016 at 11:54 AM

Be careful, it seems you compile boost 1.60 but OpenCppCoverage need boost 1.59. (cannot open file 'boost_filesystem-vc120-mt-gd-__1_59.__lib)
To understand the meaning of -vc120-mt-gd please have a look at "6.3 Library Naming".

You already opened 5 discussions in a week for compiling / linking Boost.
I am sorry but I cannot do this level of support. Note that compiling other libraries are harder. I would like to be focus on the development or question only about the usage of OpenCppCoverage.

Please be sure you really need to compile OpenCppCoverage. If it is the case, try to use boost in a simple application and try to have a depth understanding of the problem related to runtime library: before doing anything.

I hope you will understand my point of view,

Apr 19, 2016 at 11:41 AM
See latest discussion here:

Marked as answer by OpenCppCoverage on 4/19/2016 at 4:42 AM