Author Topic: SDL setup and installation [solved]  (Read 8582 times)

Offline roboguy

  • Single posting newcomer
  • *
  • Posts: 3
SDL setup and installation [solved]
« 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. 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. 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?
« Last Edit: August 27, 2011, 05:29:45 pm by roboguy »

Offline Freem

  • Almost regular
  • **
  • Posts: 218
Re: SDL setup and installation
« Reply #1 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 :)

Offline roboguy

  • Single posting newcomer
  • *
  • Posts: 3
Re: SDL setup and installation
« Reply #2 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'
« Last Edit: August 26, 2011, 06:21:15 pm by roboguy »

Offline Freem

  • Almost regular
  • **
  • Posts: 218
Re: SDL setup and installation
« Reply #3 on: August 27, 2011, 02:47:12 pm »
Give more informations...
Like full compiler log, by example

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: SDL setup and installation
« Reply #4 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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline roboguy

  • Single posting newcomer
  • *
  • Posts: 3
Re: SDL setup and installation
« Reply #5 on: August 27, 2011, 05:28:42 pm »
Thank you so much. That code::blocks logo was so beautiful.