Tech Support Guy banner
Status
Not open for further replies.

SDL Unresolved Externals

1K views 0 replies 1 participant last post by  Gatleos 
#1 ·
Alright, I'm compiling a basic framework for a game engine in SDL. Along the way I ran into a problem I've seen many, many times: unresolved externals. By my understanding, an unresolved external refers to an external variable or function (usually in a library) that the compiler can't find. All of these symbols seem to be SDL functions, but I've linked all the SDL libraries and include directories. Is there anything else that could be causing this? Let me know if you need to see more of my code for anything. Thanks.

Oh, and:
I'm using Microsoft Visual C++ Express 2010, and SDL 1.2

1>------ Build started: Project: test, Configuration: Debug Win32 ------
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_Flip referenced in function "public: bool __thiscall EngineManager::Startup(void)" (?Startup@EngineManager@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_FillRect referenced in function "public: bool __thiscall EngineManager::Startup(void)" (?Startup@EngineManager@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_PollEvent referenced in function "public: bool __thiscall EngineManager::Startup(void)" (?Startup@EngineManager@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_GetTicks referenced in function "public: bool __thiscall EngineManager::Startup(void)" (?Startup@EngineManager@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_SetVideoMode referenced in function "public: bool __thiscall EngineManager::Startup(void)" (?Startup@EngineManager@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_Init referenced in function "public: bool __thiscall EngineManager::Startup(void)" (?Startup@EngineManager@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_Quit referenced in function "public: void __thiscall EngineManager::Shutdown(void)" (?Shutdown@EngineManager@@QAEXXZ)
1>VisualGameObject.obj : error LNK2019: unresolved external symbol _SDL_FreeSurface referenced in function "public: __thiscall VisualGameObject::VisualGameObject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0VisualGameObject@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>VisualGameObject.obj : error LNK2019: unresolved external symbol _SDL_DisplayFormat referenced in function "public: __thiscall VisualGameObject::VisualGameObject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0VisualGameObject@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>VisualGameObject.obj : error LNK2019: unresolved external symbol _SDL_LoadBMP_RW referenced in function "public: __thiscall VisualGameObject::VisualGameObject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0VisualGameObject@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>VisualGameObject.obj : error LNK2019: unresolved external symbol _SDL_RWFromFile referenced in function "public: __thiscall VisualGameObject::VisualGameObject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0VisualGameObject@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>VisualGameObject.obj : error LNK2019: unresolved external symbol _SDL_UpperBlit referenced in function "public: virtual void __thiscall VisualGameObject::Draw(struct SDL_Surface * const)" (?Draw@VisualGameObject@@UAEXQAUSDL_Surface@@@Z)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Users\User\documents\visual studio 2010\Projects\test\Debug\test.exe : fatal error LNK1120: 13 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
Status
Not open for further replies.
You have insufficient privileges to reply here.
Top