Code::Blocks Forums

User forums => Help => Topic started by: Dp-Rst on November 03, 2015, 01:31:16 am

Title: How do I install SDL with the latest version of code::blocks
Post by: Dp-Rst 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
Title: Re: How do I install SDL with the latest version of code::blocks
Post by: oBFusCATed 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.  :-[
Title: Re: How do I install SDL with the latest version of code::blocks
Post by: stahta01 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/ (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/ (http://lazyfoo.net/tutorials/SDL/)

Tim S.