Error while running OpenCppCoverage code in Visual Studio express 2013

Mar 14, 2016 at 5:20 AM
Hi,

While compiling the OpenCppCoverage Source Code in Visual Studion Express 2013. Got the following errors.

Error 1 error C2027: use of undefined type 'boost::filesystem::path' d:\opencppcoverage\testcoveragesharedlib\testcoveragesharedlib.cpp
Error 1 error C2027: use of undefined type 'boost::filesystem::path' d:\opencppcoverage\testcoveragesharedlib\testcoveragesharedlib.cpp
Error 27 error C2440: 'return' : cannot convert from 'const int' to 'const boost::filesystem::path &' D:\OPENCPPCOVERAGE\CppCoverage\ModuleCoverage.cpp

So I added the boost_1_60_0 library. Still the error is coming. I need some clarification why this error is coming after adding the library.


Thanks & Regards
AbelAnisha





Coordinator
Mar 14, 2016 at 9:20 PM
Hello,

Please have a look here: https://opencppcoverage.codeplex.com/SourceControl/latest#PropertySheets/Boost.props.
You need to define $(BOOST_FOLDER) and check you have the right paths (include + library).

Note: The code is compiled with boost_1_59_0.

Hope that help,

OpenCppCoverage
Coordinator
Mar 18, 2016 at 12:55 PM
Hello,

First, check that the source files did not come from master branch (old version). I recommend using tag 0.9.4.1.
You should also use boost_1_59_0 to avoid any problem.

If you still have problems with includes or boost types, you can replace the env variable $(BOOST_FOLDER) by YOUR_PATH in PropertySheets/Boost.props and PropertySheets/Boost64.props. The path YOUR_PATH\boost\filesystem\path.hpp and YOUR_PATH\stage\lib must exist.

Warning: compiling OpenCppCoverage is not easy and boost is the easy part.

Hope that help,

OpenCppCoverage
Coordinator
Apr 19, 2016 at 11:36 AM
Closed as https://opencppcoverage.codeplex.com/discussions/651925 let me think the problem is solved.

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