Hey guys, im trying to switch from my old compiler and graphics package (devc++ and grx20.h) to code::blocks with sdl on windows 8. I have managed to get code::blocks, SDL and SDL_image working fine using lazy foo’s tutorial.
However im trying to get SDL_gfx working on code::blocks and since its not precompiled im having alot of issues.
If anyone could advise me how to get it going it would help me get going again :).
SDL_gfx is in “maintenance” mode, so probably won’t receive many updates
for newer environments/tools. But if you get it to work, please send me
the code::blocks build files and instructions so I can update the
repository.
My suggestion would be to try to compile a SDL_gfx DLL using VS Express
(free download here) with the included sln file:
–AndreasOn 8/6/2013 3:56 PM, tarsal wrote:
Hey guys, im trying to switch from my old compiler and graphics
package (devc++ and grx20.h) to code::blocks with sdl on windows 8. I
have managed to get code::blocks, SDL and SDL_image working fine using
lazy foo’s tutorial.
However im trying to get SDL_gfx working on code::blocks and since its
not precompiled im having alot of issues.
If anyone could advise me how to get it going it would help me get
going again Smile.
I have VS 2012 currently though when I load it in and compile, it gives me “Cannot open include file: ‘SDL.h’: No such file or directory”. If that means i have to set up sdl on vc2012 then that would be difficult
Did you try making a new shared/dynamic library project in Code::Blocks?
Add the SDL_gfx files to the project, add linker and include options to
find SDL, and it should work out for you.
Jonny DOn Wed, Aug 7, 2013 at 1:45 PM, tarsal wrote:
**
Thanks for the response
I have VS 2012 currently though when I load it in and compile, it gives me
"Cannot open include file: ‘SDL.h’: No such file or directory". If that
means i have to set up sdl on vc2012 then that would be difficult
Ok I managed to get it working!..I think. I used one of the libSDL_gfx.dll files that was generated when I previously tried visual studio (so your solution worked though I had already done it).
I don’t know much about code::blocks, but I’ve just compiled SDL_gfx using MinGW it wasn’t very hard and if you are using MinGW as compiler I could help you I think.