Every time I try to include my parser class's header file, I get the following errors:
I get the errors every time I try to compile the file with the main() function. These are the includes:c:\program files\microsoft visual studio\vc98\include\bhtypes.h(19) : error C2146: syntax error : missing ';' before identifier 'UNALIGNED'
c:\program files\microsoft visual studio\vc98\include\bhtypes.h(19) : fatal error C1004: unexpected end of file found
When I comment out the parser.h include, the errors go away. I need to know how to deal with this. As I don't include the bhtypes file myself, I can't remove the include. How do I deal with this? Is there a simple way, or will I need to stick another class between the main and the parser?Code:/* Headers for the default libraries */ #include <fstream.h> /* Defines files streams */ /* Headers for my modules */ #include "commands.h" /* defines the commands for the parser */ #include "FileCore.h" /* Handles opening and closing of files */ #include "RGB_Data.h" /* Defines the rgb data class, requires istream and ostream classes */ #include "BumpMaps.h" /* Defines the BumpMaps class for image storage, requires the rgb class */ #include "RGB_Operations.h" /* Defines the BMP_Operations class for image editing, requires the rgb class */ #include "parser.h" /* My general parser */