User forums > General (but related to Code::Blocks)

SDL2 support

(1/1)

kebaGanac:
Hello Code::Blocks team,
I'm an SDL2 developer and I recently switched to your IDE. I've seen that you have a feature that let's you make an SDL project. Unfortunately, this only works for SDL, but not SDL2. I downloaded the "SDL2-devel-2.0.5-mingw.tar.gz (MinGW 32/64-bit)" file from the official website, extracted it and all, typed the folder location in your wizard, but I get a script error saying "...can't allocate SDL's library file SDLmain in it...". That's because the file is called SDL2main.lib.a. When I copy the problematic files and simply change their names to *SDL* from *SDL2*, but it couldn't compile. Am I missing something? If so please tell me, if not can you please update it, because it's much easier than linking the whole thing etc.

oBFusCATed:
The wizard is a squirrel script. You can edit it and provide a patch. I guess it is safe to switch to the sdl2 as the only supported version. If you can add support for both versions this will be even cooler.

BlueHazzard:

--- Quote ---but it couldn't compile
--- End quote ---

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Navigation

[0] Message Index

Go to full version