Sign in to follow this  
dudedbz1

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this