Hi zusammen!
Ich hab das 2DSpieleFramework von David Scherfgen gesehen und gedacht: Das musst du unbedingt mal ausprobieren. Hab die dritte Auflage von 3DSpieleprogrammierung, da is das ja auf der CD.
Ich hab den Ordner auf die Festplatte kopiert und wollte dann das Beispiel(Starting Point) kompilieren. Aber das Linken geht nicht:
22 Linkerfehler, z.B:[list]
main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__ShowCursor@4" in Funktion ""public: virtual void __thiscall Intro::render(float)" (?render@Intro@@UAEXM@Z)".
font.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__SetRect@20" in Funktion ""public: void __thiscall dus::Font::drawText(class dus:
urface *,class dus::ivec2 const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,unsigned long)" (?drawText@Font@dus@@QAEXPAVSurface@2@ABVivec2@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KK@Z)".
graphics.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__SetRect@20".
game.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__PostQuitMessage@4" in Funktion ""public: void __thiscall dus::Game::quit(void)" (?quit@Game@dus@@QAEXXZ)".
graphics.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__PostQuitMessage@4".
graphics.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__CreateWindowExA@48" in Funktion ""public: __thiscall dus::Graphics::Graphics(int,int,int,unsigned long,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Graphics@dus@@QAE@HHHKABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)".
graphics.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__GetSystemMetrics@4" in Funktion ""public: __thiscall dus::Graphics::Graphics(int,int,int,unsigned long,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Graphics@dus@@QAE@HHHKABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)".
graphics.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__AdjustWindowRect@12" in Funktion ""public: __thiscall dus::Graphics::Graphics(int,int,int,unsigned long,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Graphics@dus@@QAE@HHHKABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)".
graphics.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__RegisterClassExA@4" in Funktion ""public: __thiscall dus::Graphics::Graphics(int,int,int,unsigned long,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Graphics@dus@@QAE@HHHKABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)".
graphics.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__LoadCursorA@8" in Funktion ""public: __thiscall dus::Graphics::Graphics(int,int,int,unsigned long,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Graphics@dus@@QAE@HHHKABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)".
graphics.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__UnregisterClassA@8" in Funktion ""public: virtual __thiscall dus::Graphics::~Graphics(void)" (??1Graphics@dus@@UAE@XZ)".
graphics.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__DispatchMessageA@4" in Funktion ""public: bool __thiscall dus::Graphics::processWindowMessages(void)" (?processWindowMessages@Graphics@dus@@QAE_NXZ)".
graphics.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__TranslateMessage@4" in Funktion ""public: bool __thiscall dus::Graphics::processWindowMessages(void)" (?processWindowMessages@Graphics@dus@@QAE_NXZ)".
graphics.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__PeekMessageA@20" in Funktion ""public: bool __thiscall dus::Graphics::processWindowMessages(void)" (?processWindowMessages@Graphics@dus@@QAE_NXZ)".
[/list]usw...
Benutze Visual C++ 2005 Express, hab Direkt X9 SDK korrekt installiert, Platform SDK auch. Alle DirectX Bibliotheken werden gelinkt und alle DLLs sind an Ort und Stelle. Warum geht das nicht? Bitte helft mir!