Can anybody help with the following subject please Ive made a program in C++ and stated that there is a header file (headerfile.h)to be used. However, when I compile the program a message appears saying that it is unable to include the header file. Im not sure where I actually define the header file. Can this be defined in notepad or a directory within the program or within the same directory as Microsoft Visual Studio, the software that am using? Any help would be very much appreciated...thanks
This error comes up when the compiler cannot find the header file in the current folder or in the specific folder specified. Make sure the header file exist in the same folder as the cpp file and use the following syntax. Code: #include "headerfile.h" Its not necessary to have the header file in the same folder but its a good practice. If its not there in the same folder use the relative path to tell the compiler where it can find the header file. Thanks Shabbir Bhimani