Ok, so I am gathering that #pragma once is out as a solution.
To further deepen the mystery, this is also giving me problems:
.H file for my event manager:
#ifndef EVENTMANAGER_H_INCLUDED
#define EVENTMANAGER_H_INCLUDED
#include "GQE/GQE_Types.h"
#include "GQE/App.h"
namespace GQE
{
class EventManager
{
public:
/**
* Init Functions
*/
EventManager();
~EventManager();
/**
* Allows access to the App and its members
*/
void RegisterApp(App* theApp);
/**
* Receives passed game events and caries out appropriate actions
*/
void MakeHappen(const MakeEvent theEvent, double x, double y, int nPlayerNum);
private:
///=====================================================================///
///VARIABLES:
App* mApp;
};//class EventManager
};//namespace GQE
#endif // EVENTMANAGER_H_INCLUDED
-----------------------------------------------------------------------------------
The relevant parts of "GQE/GQE_Types.h" are:
#ifndef GQE_TYPES_HPP_INCLUDED
#define GQE_TYPES_HPP_INCLUDED
#include <map>
#include <string>
// The following defines help with OS/Compiler specific calls
#ifdef WIN32
#ifndef MINGW
#define STRICMP _stricmp
#else
#define STRICMP strcasecmp
#endif
#else
#define STRICMP strcasecmp
#endif
namespace GQE
{
/// Status Enumeration for Status Return values < A functioning enum
enum StatusType {
// Values from -99 to 99 are common Error and Good status responses
StatusAppMissingAsset = -4, ///< Application failed due to missing asset file
StatusAppStackEmpty = -3, ///< Application States stack is empty
StatusAppInitFailed = -2, ///< Application initialization failed
StatusError = -1, ///< General error status response
StatusAppOK = 0, ///< Application quit without error
StatusNoError = 0, ///< General no error status response
StatusFalse = 0, ///< False status response
StatusTrue = 1, ///< True status response
StatusOK = 1 ///< OK status response
// Values from +-100 to +-199 are reserved for File status responses
};
///More enums that actually work here
///Lists all possible Events < I added this enum to the file and it does not work
enum MakeEvent
{
AddSpam = 0,
LastMakeEvent
};
};//namespace GQE
------------------------------------------------------------------------------
And Code::Blocks yells back at me:
||=== Debug ===|
C:GQE\GQE\EventManager.h|34|error: ISO C++ forbids declaration of 'MakeEvent' with no type|
C:\GQE\GQE\EventManager.h|34|error: expected ',' or '...' before 'theEvent'|
||=== Build finished: 2 errors, 0 warnings ===|