Ogre 3D compiliert nicht unter Code::Blocks, Brauche Hilfe
-
Hallo,
wie die Überschrift schon sagt, brauch ich eure Hilfe. Ogre läuft einfach bei mir nicht. Ich habs an diesem Code versucht:#include "ExampleApplication.h" class TutorialApplication : public ExampleApplication { protected: public: TutorialApplication() { } ~TutorialApplication() { } protected: void createScene(void) { mSceneMgr->setAmbientLight( ColourValue( 1, 1, 1 ) ); Entity *ent1 = mSceneMgr->createEntity( "Robot", "robot.mesh" ); SceneNode *node1 = mSceneMgr->getRootSceneNode()->createChildSceneNode( "RobotNode" ); node1->attachObject( ent1 ); } }; #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 #define WIN32_LEAN_AND_MEAN #include "windows.h" INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) #else int main(int argc, char **argv) #endif { // Create application object TutorialApplication app; try { app.go(); } catch( Exception& e ) { #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 MessageBox( NULL, e.what(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL); #else fprintf(stderr, "An exception has occurred: %s\n", e.what()); #endif } return 0; }Es ist der Code aus der Ogre Wiki unter Tutorials.
Ich erhalte folgende Fehlermeldung:*:: === testogr5, Release ===
C:\Programme\Microsoft Platform SDK\Include\winnt.h:666: #error Must define a target architecture.
C:\Programme\Microsoft Platform SDK\Include\stralign.h:99: warning: ignoring #pragma warning
C:\Programme\Microsoft Platform SDK\Include\stralign.h
warning: ignoring #pragma warning
C:\Programme\Microsoft Platform SDK\Include\stralign.h:102: warning: ignoring #pragma warning
C:\Dokumente und Einstellungen\The Script\Eigene Dateien\C++\testogr5\main.cpp:41: error: expected primary-expression before ',' token
:: === Build finished: 2 errors, 3 warnings ===
*Ich hab die Ogre Version 1.4.9 installiert und mich dabei an die Anleitung gahalten, doch es geht einfach nicht... sowie die Beispiele des SDK.
Was hab ich falsch gemacht?
-
vielleicht etwas in der falschen reihenfolge included. ich denke du koenntest nicht der erste sein der das problem hat, eventuell steht schon ne loesung im ogree forum?
-
hab schon geguckt, aber nicht gefunden. Werd meine Frage dort mal stellen