SDL Unresolved Externals

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Gatleos

Thread Starter
Joined
Jun 11, 2010
Messages
13
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)" ([email protected]@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_FillRect referenced in function "public: bool __thiscall EngineManager::Startup(void)" ([email protected]@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_PollEvent referenced in function "public: bool __thiscall EngineManager::Startup(void)" ([email protected]@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_GetTicks referenced in function "public: bool __thiscall EngineManager::Startup(void)" ([email protected]@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_SetVideoMode referenced in function "public: bool __thiscall EngineManager::Startup(void)" ([email protected]@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_Init referenced in function "public: bool __thiscall EngineManager::Startup(void)" ([email protected]@@QAE_NXZ)
1>EngineManager.obj : error LNK2019: unresolved external symbol _SDL_Quit referenced in function "public: void __thiscall EngineManager::Shutdown(void)" ([email protected]@@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 &)" (??0VisualGameO[email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@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 &)" ([email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@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 &)" ([email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@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 &)" ([email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
1>VisualGameObject.obj : error LNK2019: unresolved external symbol _SDL_UpperBlit referenced in function "public: virtual void __thiscall VisualGameObject::Draw(struct SDL_Surface * const)" ([email protected]@@[email protected]@@Z)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol [email protected] 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
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top