Help with an error
Does anyone know what the errors Constant is long and Cannot create pre-compiled header: code in header means?
Actually, they are not really errors, only warnings. But I would still like to eliminate them :).
Since my code is pretty long, I'm not posting it here...
"Cannot create pre-compiled header: code in header" means exactly what it says: you have put all the code in a .h-file instead of making a header with all the function and class declarations and a .cpp-file with the definitions. There is nothing wrong with this, but Borland (it is Borland, right? At least Borlande produces exactly that kind of warning) cannot create a precompiled version of the .cpp-file for faster compile next time because the .cpp-file doesn't exist.
I always forget to say which compiler I use. It's Borland, yes. (Think I'm gonna put it into my signature :)).
Actually, I only have .cpp files, no .h files. So the compiler thinks it's one big header file??? Weird.
Well, guess I'll have to split up the code into header and cpp files :).
And what about constant is long? I get that warning at about a million places... Exactly what does it mean? Here are some examples of where the warning occurs:
Vga=(unsigned char*)0xA0000000; Well, this adress is kind of long... :)
WAVFile=fopen(FileName, "rb"); ?????
Thanks for your help!