Problems using a separate class file
Hi, I was testing my learning from the c++ curso, but when I tried to make a separte class file, and run it the compiler sais that there's not such file or that the directoy is wrong. First I belived that it was I mistake so I search it, and there was no mistake. Then I belived that something was failing in the file so I created a new program and I tried again to run a separate class file, but the problem continue. So I made a post asking about this issue, but there I also didn't find a solution. Know I created a new program, and tried again to run a new class, but the problem continue. Here is the code, it is clean, because it was only created to test this class issue Main.cpp: #include <iostream> using namespace std; #include "Class.h" int main() { Class ob; } Class.h: #ifndef CLASS_H #define CLASS_H class Class { public: Class(); protected: private: }; #endif // CLASS_H Class.cpp: #include <iostream> using namespace std; #include "Class.h" Class::Class() { cout << "Hola" << endl; } I am doing it in code blocks with the GNU compiler and here is the fail message: mingw32-g++.exe -Wall -fexceptions -g -I"D:\Documentos\clases de C++\CLass Tests\" -c "D:\Documentos\clases de C++\CLass Tests\Class.cpp" -o obj\Debug\Class.o mingw32-g++.exe: error: de: No such file or directory mingw32-g++.exe: error: C++\CLass: No such file or directory mingw32-g++.exe: error: Tests\Class.cpp -o obj\Debug\Class.o: No such file or directory