Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 616
Saravanan I M Avatar asked Jul 02 '10 07:07

Saravanan I M


2 Answers

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/release/more/getting_started/windows.html#build-from-the-visual-studio-ide

and note especially the include directory setup.

like image 146
John Weldon Avatar answered Nov 14 '22 10:11

John Weldon


You need to make sure that you have included the path to the Boost header files in Visual C++.

Follow the instructions here.

This issue arises because Visual C++ does not include the path to the Boost header files. By including the directory, Visual C++ will search that directory for the problem and hopefully your problem should be solved.

like image 1
user225312 Avatar answered Nov 14 '22 10:11

user225312