Author Topic: I want to support code blocks on my site. Need some help.  (Read 4314 times)

Lazy Foo

  • Guest
I want to support code blocks on my site. Need some help.
« on: August 23, 2007, 06:17:22 am »
I run a SDL tutorial site and I have a tutorial to set up SDL on code blocks. I want to make sure it stays up to date so I have a few questions regarding the future of code blocks. I apologize in advance if this is the wrong board to ask this on.

Here's my set up tutorial http://lazyfoo.net/SDL_tutorials/lesson01/windows/codeblocks/index.php.

You only see images from the RC2 version of code blocks because officially I only support RC2 of code::blocks, simply because I don't have the time to be updating the tutorial to catch up with the nightly builds.

I do at least want to have some support for the nightly builds by putting text instructions in the tutorial. A small while ago, one of my readers was complaining that my instructions didn't work because code blocks would try to link against SDL.dll. MinGW is supposed to link against .lib and .a files so that isn't right. Has this bug been fixed yet?

Also in the article I'm currently working on I use DevIL. It was a bit of a pain to get working on Dev C++ but I got it to work. While I was searching for a solution I noticed lots of people tried to get DevIL working on code blocks with little success because the .lib files didn't work. I just want to verify if the DevIL .a files that I created for Dev C++ work on code blocks. I'm guessing they should because both IDEs use MinGW. Could anybody here verify that they work? Link to the .a files: http://lazyfoo.net/downloads/DevIL_lib.zip

I'd test all this myself, it's just that I'm really strapped for time.

Once last question, I know the menu set up has changed since RC2. Is it expected to change between now until the next non-nightly build release? Because if it isn't I might as well redo the tutorial images.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: I want to support code blocks on my site. Need some help.
« Reply #1 on: August 23, 2007, 08:00:53 am »
because code blocks would try to link against SDL.dll. MinGW is supposed to link against .lib and .a files so that isn't right. Has this bug been fixed yet?
This doesn't need to be fixed though. Simply point to the correct file in the linker options.

Could anybody here verify that they work?
I downloaded a MinGW package of DevIL and a sample application (simple.c) from koders. Setup a C::B project and compiled the application - it worked from scratch. ...well... after I had to d/l a million runtime-DLL's, too. ;-)

So yes, DevIL works with C::B/MinGW aon Windows. Unfortunately I cannot verify it works with exactly your libs as you didn't provide any interface to them (header files, example etc...).

With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Seronis

  • Almost regular
  • **
  • Posts: 197
Re: I want to support code blocks on my site. Need some help.
« Reply #2 on: August 23, 2007, 02:51:35 pm »
RC2 is effectively in the era of the pyramids.  I dont see a point in you supporting a tutorial on using it when no one else does.  I've used various SVN revisions from 2500 through around 3500.  I have a nightly thats more recent (somewhere in the rv4k range).  ALL of the above are vastly more functional than RC2 which I admitedly did try first when I discovered C::B.  But im glad that I downloaded a nightly build the next week and moved on to grabbing it from svn myself.