Unexplainable error...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
cookie
Posts: 83
Joined: Sun Aug 23, 2009 9:30 pm

Unexplainable error...

Post by cookie »

Hello,
I tried to compile my project, but suddenly I became this error message

Code: Select all

Engine_EventReceiver.cpp|16|error: expected initializer before "CGameInput"|

in this line

Code: Select all

CGameInput* initEventReceiver()
I don't know whats happened that this error suddenly appears, because I didn't change anything in this file... I tried to compile another file for itself and I get the same error message just in line

Code: Select all

using namespace irr;
The error comes not in all of my include files, just in two oder three, but I can't fix it because I don't know what to do... the error appears everytime in the first line code under the #includes.
The include file above the error-line isn't always the same.


thanks for help!
Arcoroc
Posts: 51
Joined: Wed Oct 01, 2008 11:40 pm
Location: Canada

Post by Arcoroc »

You could try and post your code to give a better idea.

Have you checked a few things, such as:
- CGameInput class definition header file was included
- missing ';' character at a preceding line
- using explicit namespace qualifier for your third party calls
- making sure your header files are protected with either a #pragma once or a #ifndef/#define, so that they are not included more than once
- no cycle in header inclusion dependencies
L/
Post Reply