VC++ 2008 Express - Ogre Compilierungsfehler
-
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_WinMain@16" in Funktion "___tmainCRTStartup". 1>bin\Debug\Test.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
Ich hab einfach diesen Code in meinen Compiler kopiert: http://www.ogre3d.org/wiki/index.php/Basic_Tutorial_1#Getting_Started
Könnt ihr mir sagen wie diese Fehler zustande kommen?
-
Keiner eine Ahnung? Wenn ich das Subsystem auf Console umstelle funktioniert es, durch anderen Einsprungspunkt. Aber warum funktioniert Windows nicht?
Hier nochmal der Code:#include "ExampleApplication.h" class TutorialApplication : public ExampleApplication { protected: public: TutorialApplication() { } ~TutorialApplication() { } protected: void createScene(void) { } }; #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 #define WIN32_LEAN_AND_MEAN #include "windows.h" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) #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; }
-
Wass soll denn "OGRE_PLATFORM" sein?