Code::Blocks Forums

User forums => Help => Topic started by: roboguy on August 26, 2011, 01:47:33 am

Title: SDL setup and installation [solved]
Post by: roboguy on August 26, 2011, 01:47:33 am
Hello, I am trying to set up SDL with code blocks. I installed the files manually using this tutorial (http://www.cprogramming.com/tutorial/sdl/setup.html). I then tried to create an SDL project. Everything went fine until I received the following error. "The path you entered seems valid, but this wizard can't locate the following SDL's include file: SDL.h in it." I then searched for information on the error and found this topic (http://forums.codeblocks.org/index.php/topic,13352.0.html). It said that the headers for SDL have changed. (I am using version 1.2.14) They said to change the wizard settings. The problem is I don't know what to use in place of SDL.h. Thanks in advance for any help. I am using MinGW. I did read the rules and assume this falls under the category of code::blocks related?
Title: Re: SDL setup and installation
Post by: Freem on August 26, 2011, 09:45:02 am
This file has probably be moved at a time or another. Search in your directories where it is, and fill the "include" path or the C::B variable with the correct value, I think it should be ok.

"I did read the rules and assume this falls under the category of code::blocks related?"
I think too :)
Title: Re: SDL setup and installation
Post by: roboguy on August 26, 2011, 05:37:05 pm
EDIT: I fixed that problem. Apparently a lot of stuff got messed up. So I cut pasted all of the headers needed and I came up with another error. undefined reference to '__dyn_tls_init_callback'
Title: Re: SDL setup and installation
Post by: Freem on August 27, 2011, 02:47:12 pm
Give more informations...
Like full compiler log, by example
Title: Re: SDL setup and installation
Post by: stahta01 on August 27, 2011, 04:28:47 pm
EDIT: I fixed that problem. Apparently a lot of stuff got messed up. So I cut pasted all of the headers needed and I came up with another error. undefined reference to '__dyn_tls_init_callback'

Per http://forums.codeblocks.org/index.php/topic,12701.msg86150.html#msg86150

It is likely from mixing multiple MinGW Installations or mixing object (or library files) from older MinGW build with a newer mingw build.

Tim S.
Title: Re: SDL setup and installation
Post by: roboguy on August 27, 2011, 05:28:42 pm
Thank you so much. That code::blocks logo was so beautiful.