Despite hash-including it, my project cannot seem to find its header file. I have included a screenshot because I think it's the most effective way to showcase my problem:
ERROR MESSAGE
1>c:\users\wood\desktop\old programs\locker.cpp(2): fatal error C1083: Cannot open include file: 'Locker.h': No such file or directory
Any ideas as to what's gone wrong? I've tried: 1) Cleaning the project and rebuilding it. 2) Creating a brand new, identical project.
Thanks!
Ok, so let's say I have a program with source code located in C:\Users\Chuck\desktop\programming, but it requires a header file from C:\Users\Chuck\desktop\headers. I can #include the header all I want, but if I don't include the absolute file name, the compiler will refuse to look in the right place.
With you, however, the easiest solution you might try would be to include the absolute path to the header file. So if it's located at
C:\Users\Wood\desktop\old programs\locker.h
you might try including that instead of simply "locker.h"
Code::Blocks gets real fidgety with me if I don't include the header file in the same directory. Normally I can work around that using this same method. Try it, see if it works.