I'm working on a C++ project with 1 source file and 2 header files, to be compiled in Codeblocks. The files themselves are correct (from a c++ course) but my compile settings in CB project must be incorrect (?).
I receive following error in build log
mingw32-g++.exe: error: C:\Users\Documents\C++ St\cs106: No such file or directory
Make sure your file extensions are correct both on disk and in your source code.
The error message says the compiler didn't find "cs106". That message doesn't show a file extension. Is that your .cpp file or a .h file? e.g. if you have #include "cs106" the compiler is going to look for a file without a .h extension.
The other possibility is that you don't have your project properties set to tell the compiler to look in the "C:\Users\Documents\C++ St\" directory (assuming the compiler doesn't look there by default).
'cs106' is a folder, but I have not specified this path anywhere (to my knowledge) also because of spaces in the path (seems an issue in CB).
Should I specify to look for file 'mingw32-g++.exe'? This is in 'settings/compiler/toolchain executables' yet again folder 'cs106' is not mentioned here.
The source and header files are correct (from a course) and have extensions.