Hi :)
I have quite a lengthy C++ project to complete over the coming weeks. I wanted to build my project at regular intervals to avoid any major errors.
My question is: Can just a header file alone be "built" to check for errors or does there have to be a main function.
I've tried building my first class header file, but the error...
general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
...keeps appearing. I haven't included any files.
Anyway thanks in advance for your help.
you will need main.cpp (to invoke) and body.cpp(to define) in order for the compiler to check the definitions of the prototypes you have in your header.
If you are making an application (.exe) you will need an int main(). If you are making a .lib or .dll then you do not require the main function. But no source (.cpp or .c) files? I think that is also a problem. This is because the compiler (at least MS VC++) compiles only the source files, adding header files ONLY when included in a source file.