I am compiling a VC++ source file in VS2008 licenced edition.


Using the following header files:

#include <regex>

But I am getting the below error while compiling.

fatal error C1083: Cannot open include file: 'regex': No such file or directory

Please advise what Iam missing here.. :(

Do you have Service Pack 1 installed? Otherwise, try reinstalling VS.

I think regex is part of boost libraries.

You're completely correct about that, but I think the version that the OP is expecting is the TR1 version put out with the last VS.

You're right -- I had never noticed that VC++ 2010 Express contains that header file. But I don't know if it was included in VC++ 2008 or not, better check the include folder.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.