The header file:
Code:
#ifndef HEADERS_H
#define HEADERS_H
//Class declarations
#endif
I include this file in multiple others, but I thought this should take care of it...These are the errors I get:
Code:
1>------ Build started: Project: ppppConsole, Configuration: Debug Win32 ------
1>Compiling...
1>Setup.cpp
1>c:\users\nancy\documents\visual studio 2008\projects\ppppconsole - copy - debug mode\ppppconsole\headers.h(281) : error C2146: syntax error : missing ';' before identifier 'BMP'
1>Generating Code...
1>Compiling...
1>Prey.cpp
1>c:\users\nancy\documents\visual studio 2008\projects\ppppconsole - copy - debug mode\ppppconsole\headers.h(281) : error C2146: syntax error : missing ';' before identifier 'BMP'
1>Generating Code...
1>Compiling...
1>Predator.cpp
1>c:\users\nancy\documents\visual studio 2008\projects\ppppconsole - copy - debug mode\ppppconsole\headers.h(281) : error C2146: syntax error : missing ';' before identifier 'BMP'
1>Generating Code...
1>Compiling...
1>Map.cpp
1>c:\users\nancy\documents\visual studio 2008\projects\ppppconsole - copy - debug mode\ppppconsole\headers.h(281) : error C2146: syntax error : missing ';' before identifier 'BMP'
1>Generating Code...
1>Compiling...
1>main.cpp
1>c:\users\nancy\documents\visual studio 2008\projects\ppppconsole - copy - debug mode\ppppconsole\headers.h(281) : error C2146: syntax error : missing ';' before identifier 'BMP'
1>c:\users\nancy\documents\visual studio 2008\projects\ppppconsole - copy - debug mode\ppppconsole\main.cpp(83) : warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data
1>Generating Code...
1>Compiling...
1>GameSetup.cpp
1>c:\users\nancy\documents\visual studio 2008\projects\ppppconsole - copy - debug mode\ppppconsole\headers.h(281) : error C2146: syntax error : missing ';' before identifier 'BMP'
1>Generating Code...
1>Compiling...
1>GameEngine.cpp
1>c:\users\nancy\documents\visual studio 2008\projects\ppppconsole - copy - debug mode\ppppconsole\headers.h(281) : error C2146: syntax error : missing ';' before identifier 'BMP'
1>Generating Code...
1>Compiling...
1>Creature.cpp
1>c:\users\nancy\documents\visual studio 2008\projects\ppppconsole - copy - debug mode\ppppconsole\headers.h(281) : error C2146: syntax error : missing ';' before identifier 'BMP'
1>Generating Code...
1>Compiling...
1>BMP.cpp
1>c:\users\nancy\documents\visual studio 2008\projects\ppppconsole - copy - debug mode\ppppconsole\headers.h(281) : error C2146: syntax error : missing ';' before identifier 'BMP'
Also, I'm a bit confused about all the includes, why do I have to include (for example) iostream in all the cpp files that use stuff defined therein when I've already included it in main.cpp (where int main() is)?!