Problems with the GameState
- darkmaster
- Halfling
- Posts: 67
- Joined: Wed Mar 09, 2005 7:04 pm
- Location: Netherland
Problems with the GameState
hELLO all,
I implement the game state method which is shown in the wiki articles.
But when I try to run it, I got some erors which are very weird to me. Its happening when I try to use the CEGUI things in my apps.
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(105) : error C2143: syntax error : missing ';' before '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(105) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(105) : error C2720: 'sMemManager' : '__declspec(dllimport ) ' storage-class specifier illegal on members
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(105) : error C2491: '`global namespace'::Ogre::MemoryManager::sMemManager' : definition of dllimport static data member not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(105) : error C2059: syntax error : '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : error C2143: syntax error : missing ';' before '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : error C2720: 'sMemManager' : '__declspec(dllimport ) ' storage-class specifier illegal on members
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : error C2182: 'sMemManager' : illegal use of type 'void'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : error C2491: '`global namespace'::Ogre::MemoryManager::sMemManager' : definition of dllimport static data member not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : error C2059: syntax error : '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(107) : error C2143: syntax error : missing ';' before '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(107) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(107) : error C2720: 'sMemManager' : '__declspec(dllimport ) ' storage-class specifier illegal on members
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(107) : error C2491: '`global namespace'::Ogre::MemoryManager::sMemManager' : definition of dllimport static data member not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(107) : error C2059: syntax error : '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(108) : error C2143: syntax error : missing ';' before '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(108) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(108) : error C2720: 'sMemManager' : '__declspec(dllimport ) ' storage-class specifier illegal on members
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(108) : error C2491: '`global namespace'::Ogre::MemoryManager::sMemManager' : definition of dllimport static data member not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(108) : error C2059: syntax error : '.'
SOry to post all of this eror line, I really don't know the cause of this eror.
The program structure is looks like this
I have two header file:
GameEngine.h: it contains the class structure of GameManager, InPUTmANAGER, GameState
GameState.h: This is where my first state is made, SplashScreen state is the one causing problem. If I remove this, all the eror is gone.
two cpp file:
main.cpp:main call
GameEngine.cpp:the code for the GameEngine.h
I really dont understand what's wrong, hope anyone can suggest some solutions
Regards,
Dark
I implement the game state method which is shown in the wiki articles.
But when I try to run it, I got some erors which are very weird to me. Its happening when I try to use the CEGUI things in my apps.
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(105) : error C2143: syntax error : missing ';' before '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(105) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(105) : error C2720: 'sMemManager' : '__declspec(dllimport ) ' storage-class specifier illegal on members
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(105) : error C2491: '`global namespace'::Ogre::MemoryManager::sMemManager' : definition of dllimport static data member not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(105) : error C2059: syntax error : '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : error C2143: syntax error : missing ';' before '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : error C2720: 'sMemManager' : '__declspec(dllimport ) ' storage-class specifier illegal on members
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : error C2182: 'sMemManager' : illegal use of type 'void'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : error C2491: '`global namespace'::Ogre::MemoryManager::sMemManager' : definition of dllimport static data member not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(106) : error C2059: syntax error : '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(107) : error C2143: syntax error : missing ';' before '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(107) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(107) : error C2720: 'sMemManager' : '__declspec(dllimport ) ' storage-class specifier illegal on members
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(107) : error C2491: '`global namespace'::Ogre::MemoryManager::sMemManager' : definition of dllimport static data member not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(107) : error C2059: syntax error : '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(108) : error C2143: syntax error : missing ';' before '.'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(108) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(108) : error C2720: 'sMemManager' : '__declspec(dllimport ) ' storage-class specifier illegal on members
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(108) : error C2491: '`global namespace'::Ogre::MemoryManager::sMemManager' : definition of dllimport static data member not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\malloc.h(108) : error C2059: syntax error : '.'
SOry to post all of this eror line, I really don't know the cause of this eror.
The program structure is looks like this
I have two header file:
GameEngine.h: it contains the class structure of GameManager, InPUTmANAGER, GameState
GameState.h: This is where my first state is made, SplashScreen state is the one causing problem. If I remove this, all the eror is gone.
two cpp file:
main.cpp:main call
GameEngine.cpp:the code for the GameEngine.h
I really dont understand what's wrong, hope anyone can suggest some solutions
Regards,
Dark
Engineers aren't boring people, but they got excited over boring things and they make it fun.
www.freewebs.com/gpkfontys
www.freewebs.com/gpkfontys
- Robomaniac
- Hobgoblin
- Posts: 508
- Joined: Tue Feb 03, 2004 6:39 am
- haffax
- OGRE Retired Moderator
- Posts: 4823
- Joined: Fri Jun 18, 2004 1:40 pm
- Location: Berlin, Germany
- x 7
- Contact:
almost
Code: Select all
#include <OgreNoMemoryMacros.h>
// XERCES/CEGUI headers
#include <OgreMemoryMacros.h>
- darkmaster
- Halfling
- Posts: 67
- Joined: Wed Mar 09, 2005 7:04 pm
- Location: Netherland
Niceee solution. Its working correctly now guys.
but why do we need to include<OgreNoMemoryMacros>
and include<OgreMemoryMacros>.
HOw is the workaround regarding to the memoryManager conflict be done with this statement? maybe someone can explain to me
Dark
but why do we need to include<OgreNoMemoryMacros>
and include<OgreMemoryMacros>.
HOw is the workaround regarding to the memoryManager conflict be done with this statement? maybe someone can explain to me
Dark
Engineers aren't boring people, but they got excited over boring things and they make it fun.
www.freewebs.com/gpkfontys
www.freewebs.com/gpkfontys
- Kencho
- OGRE Retired Moderator
- Posts: 4011
- Joined: Fri Sep 19, 2003 6:28 pm
- Location: Burgos, Spain
- x 2
- Contact:
- :wumpus:
- OGRE Retired Team Member
- Posts: 3067
- Joined: Tue Feb 10, 2004 12:53 pm
- Location: The Netherlands
- x 1
- Kencho
- OGRE Retired Moderator
- Posts: 4011
- Joined: Fri Sep 19, 2003 6:28 pm
- Location: Burgos, Spain
- x 2
- Contact:
- haffax
- OGRE Retired Moderator
- Posts: 4823
- Joined: Fri Jun 18, 2004 1:40 pm
- Location: Berlin, Germany
- x 7
- Contact:
- Kencho
- OGRE Retired Moderator
- Posts: 4011
- Joined: Fri Sep 19, 2003 6:28 pm
- Location: Burgos, Spain
- x 2
- Contact: