# Linking Errors(not a double post, different from the other)

## Recommended Posts

dudedbz1    100
Ok, I fixed the other problem I had before and somehow (?)deleted(?) the thread. W/e, but the problem now is that I get this:
..\SDL_Engine\libSDL_Engine.a(SDL_EngineMain.o):SDL_EngineMain.cpp:(.text+0x95): undefined reference to SDL_SetVideoMode'

I have everything linked fine and all... Whats wrong?

##### Share on other sites
TDragon    679
libSDL.a is still not getting linked to the final product, somehow. Remember that you have to add the necessary libraries to your .EXE; they don't get put in with your own library code.

##### Share on other sites
dudedbz1    100
I have -lSDLmain and -lSDL in there. Here:

Main project:
-lmingw32-mwindows-lSDLmain-lSDL_mixer-lSDL_image-lSDL_ttf-lSDL

Lib:
-lmingw32-mwindows-lSDLmain-lSDL_mixer-lSDL_image-lSDL_ttf-lSDL`

I dont know why...

##### Share on other sites
dudedbz1    100
Anyone?

//Edit: Fixed it by adding libSDL.dll.a to my project. But why did i need to do that on this project and not any of the others that use SDL directly?

[Edited by - dudedbz1 on October 22, 2005 3:03:17 PM]