There are two .hpp files
fileSystemUser.hpp
#pragma once
#include "main.h"
#include "fileCommands.hpp"//!!!Problem
#include "fileObject.hpp"
class FileSystemUser {
...
void start() {
FileCommands fc;
...
}
....
}
fileCommands.hpp
#pragma once
#include "main.h"
#include "stringService.hpp"
#include "fileSystemUser.hpp" //!!!Problem
#include "debug.hpp"
class FileCommands {
int analyze(string command, FileSystemUser* fileSystem) {...}
}
I build in this way:
• cmake -G "MinGW Makefiles" ..
• make //I've copied and renamed cmake-32.exe in mingw bin folder
The problem at step build after printing make: I have a lot of errors. All of them about undeclared FileSystemUser. I think that problem about includes I put at those includes //!!!Problem.
How to fix this?