c++ - Visual Studio not finding boost include files in release mode (works in debug) -
i'm using boost visual studio 2013 express.
visual studio finds #include <boost/filesystem.hpp>
in debug mode, not in release mode.
when try compile in release mode, says:
error 1 error c1083: cannot open include file: 'boost/filesystem.hpp': no such file or directory
when right click on #include
directive open file manually, works in debug configuration, again not in release, there says:
file 'boost/filesystem.hpp' not found in current source file's directory or in build system paths.
i checked build configurations ,
- c/c++ - > general -> "additional include directories"
- linker -> general -> "additional library directories"
- linker -> input -> "additional dependencies"
are same both configurations.
do need edit "build system paths", error says? thought 3 options above do.
what else cause problem?
double-check you've checked settings of project actual failed build. had same issue when using boost::optional. overlooked project (unittests) failing, rather project suspected (cppplaygroundlib) due misinterpreting build output focussing on line containing error message:
1>------ build started: project: unittests, configuration: release win32 ------
1> footests.cpp
1>c:\projects\playground\cppplayground\cppplaygroundlib\foo.h(3): fatal error c1083: cannot open include file: 'boost/optional/optional.hpp': no such file or directory
========== build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
after had added missing boost path in c/c++->general->additional include directories solution compiled successfully.
Comments
Post a Comment