Cannot compile .h file?
-
I am using VC++ and when I press the compile button a msg box appeared and told me that: Cannot compile the file '...\myheader.h': no compile tool is associated with the file extension. Why would this happend?
Because you cannot compile a header file - you need to build the project. Christian I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
-
I am using VC++ and when I press the compile button a msg box appeared and told me that: Cannot compile the file '...\myheader.h': no compile tool is associated with the file extension. Why would this happend?
You cannot compile a header file. Try compiling the corresponding .cpp file. If there is an error in the header file the compiler will report it. Best regards, Alexandru Savescu