• Advertisement
Sign in to follow this  

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

This topic is 4504 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
Share on other sites
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 this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement