Sign in to follow this  

Can't get SDL working

This topic is 1216 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

Hello everyone,

 

I've made several attempts to install SDL 1.2.15 on my Code::Blocks IDE.

I did it in the way this site (http://www.cprogramming.com/tutorial/sdl/setup.html) told me to,

but if i run the most simple programs, i get the following error: 

 

"e:\p\giaw\src\pkg\mingwrt-4.0.3-1-mingw32-src\bld\..\mingwrt-4.0.3-1-mingw32-src\src\libcrt\crt\init.c|241|undefined reference to `__mingw_glob'|"

 

I'm using Windows 7, with this version of Code::Blocks: codeblocks-13.12mingw-setup-TDM-GCC-481.exe.

 

Thanks in advance.

 

 

 

 

 

Share this post


Link to post
Share on other sites

Is there a particular reason for you to use SDL 1.2.15? There is a 2.0 version out now. I just looked at the tutorial that you link and it does not cover anything. You have to set up links and includes in codeblocks for it to work. Get SDL 2.0 and Follow the tutorials from http://lazyfoo.net/tutorials/SDL/index.php

Well yeah, because the team i work with, works with SDl 1.2.15, but i don't know if i can use 2.0 then?

Share this post


Link to post
Share on other sites
SDL 2.0 uses new features that will not work with SDL1.2 and I am not sure if the existing features were modified since "1.2". I would try to convince the team to upgrade "2.0" cause later it would be hard to migrate. But anyways, here is the solution for you: http://lazyfoo.net/SDL_tutorials/lesson01/windows/codeblocks/index.php

Share this post


Link to post
Share on other sites

This topic is 1216 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.

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