The error is caused
# Include <boost/RegEx. HPP>
Put it
# Define destdafx. H"
Before
Is not a class or namespace name solution favorites
Is not a class or namespace name Solution
Each time a new class is created, the # include "stdafx. H" file must be added to the classname. cpp file, and the position of the file must be in the first line;
Cause: the compiler uses a header file stdafx. h. h. afxwin. h) pre-compilation. Later, this header file will not be compiled and only the pre-compilation results will be used. This will speed up compilation and save time. The precompiled header file is generated by compiling stdafx. cpp and named after the project name. Because the precompiled header file is suffixed with "PCH", the compilation result file is projectname. PCH. The compiler uses the pre-compiled header file through a header file stdafx. h. The stdafx. h header file name can be specified in the project compilation settings. The compiler considers that allCodeAll are pre-compiled. It skips the # includestdafx. H "command and uses projectname. PCH to compile all the code after this command.
Therefore, the first statement of all CPP implementation files is: # include "stdafx. H ".
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/jiangxinyu/archive/2008/07/03/2607113.aspx