Fatal error C1083: Cannot open include file: ‘boost/regex.hpp’: No such file or directory

visual c++visual studio 2010

I am getting the following error when i build my code using regex.hpp I am using VS2010 VC++

fatal error C1083: Cannot open include file: 'boost/regex.hpp': No such file or directory

boost\boost_regex-vc71-mt-1_33_1.lib file is here.. is this correct?

Best Answer

It sounds like your include settings do not have the path to the boost installation parent directory.

Look at these instructions: http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#build-from-the-visual-studio-ide

and note especially the include directory setup.