Author Topic: How do I install SDL with the latest version of code::blocks  (Read 5252 times)

Offline Dp-Rst

  • Multiple posting newcomer
  • *
  • Posts: 12
How do I install SDL with the latest version of code::blocks
« on: November 03, 2015, 01:31:16 am »
Hello,

I've on and off tried to install SDL to codeblocks for years, tried two years ago and got some errors I couldn't solve, reinstalled and stuck with making little console games, tried again a year later with more errors I couldn't solve, tried again today with lazyfoo's tutorials, followed them to a T, I didn't even get an error he said you could get, I get ld.exe cannot find -SDL2_Image and -SDL2_Mixer, google didn't help, no clue what's wrong

I uninstalled code::blocks, removed the SDL files and tried again following the tutorial to a T, same errors, googled solutions finding none.

I've been wanting to try and make graphical applications for years and it's seemingly been impossible to do it, I have no idea why it's so fiddly to install sdl but if anyone knows how to get around those errors please tell me how (in the simplest way possible if possible) I've done a lot to try and get this working and it's honestly really frustrating that two years later I still can't do it

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: How do I install SDL with the latest version of code::blocks
« Reply #1 on: November 03, 2015, 01:44:58 am »
If you understand the basics how compiling and linking work, then it is not hard.
But unfortunately there are no good tutorials explaining them.  :-[
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7789
    • My Best Post
Re: How do I install SDL with the latest version of code::blocks
« Reply #2 on: November 03, 2015, 04:23:38 am »
Preliminary steps needed.

1. Know the Operating System (OS) Information
2. Know your Compiler Information (Code::Blocks is NOT a Compiler)
3. Know your development environment or build system as in "Code::Blocks" for you.

I have been doing the steps from this site to work on learning SDL2 myself. (Working on adapting the steps for MSys2 GCC 5.2)
http://www.willusher.io/pages/sdl2/

Most people seem to use this site; but, I decided to NOT use it. It did NOT look as license friendly or as easy.
http://lazyfoo.net/tutorials/SDL/

Tim S.

« Last Edit: November 03, 2015, 05:22:44 am by stahta01 »
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