This project is read-only.

How to resolve "Cannot open include file: 'boost/log/trivial.hpp" build error??

Mar 18, 2016 at 6:54 AM
  1. Downloaded the boost_1_60_0 library
  2. Build the boost library as below:
Run the below commands in Command Prompt:
• bootstrap.bat
• 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
  1. 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
  1. Build the project
    Note: OpenCppCoverage source code header files not pointing to boost path(Ref: highlighted area in Screenshot )
        Got the build errors: error C1083: Cannot open include file: 'boost/log/trivial.hpp': No such file or directory d:\opencppcoverage\tools\Log.hpp
    
    
  2. Created one simple console application( SimpleExample.cpp) in visual studio as below and got the output without any errors
NOTE: In the above included #include <boost/lambda/lambda.hpp>, its pointing to the location D:\Boost\boost_1_60_0, whereas in OpenCppCoverage source code not pointing.
Mar 18, 2016 at 2:00 PM
Hello,

Please have a look to my answer here: https://opencppcoverage.codeplex.com/discussions/652487.
Note: Try with boost 1.59.0

Hope that help,

OpenCppCoverage
Marked as answer by OpenCppCoverage on 3/22/2016 at 2:15 PM