A compilation Error every time a class is just added by the class wizard

I had a similar error. When adding a class through the editor, without specifying public-private, but not in the root directory, the build began to fall.
Code generation adds /folderName to ClassName.h in the include section of the .cpp file. After deleting /folderName, the project builds normally again.