Jump to content
  • Advertisement
Sign in to follow this  
Velvet Leopard

Code::Blocks and SDL tutorials

This topic is 4034 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey there. I just installed SDL and Code::Blocks and I was trying to follow an introduction tutorial to them, but I can't seem to translate the tutorial to Code::Blocks. They use Visual Studio C++ 6.0. Are there any tutorials here for Code::Blocks and SDL or something that can tell me how to translate a VC++ tutorial to CB? Thanks much.

Share this post


Link to post
Share on other sites
Advertisement
C::B can import VC6 workspaces.

What specific kinds of things are you having trouble translating?

Share this post


Link to post
Share on other sites
Well, I really just need to figure out how to setup a compiler and library the proper way so I can even DO the tutorials. I want to use C++, OpenGL, and SDL since they seem to be quite popular. I have C::B and a book on non-visual C++.

Share this post


Link to post
Share on other sites
- If the tutorials come with VC6 workspaces, then just import those workspaces into C::B (or import them into VC 2005)
- Otherwise, setting up your own workspaces isn't too hard... But if you're new to setting up workspaces it might be easier to switch to a Microsoft IDE...

-- Create a new project (probably using the "Console Application" template)
-- Go into the project build options
--- Add your SDL include directory to the Directories-Compiler section
--- Add your SDL lib directory to the Directories-Linker section
--- If the tutorial tells you to add a specific lib to the linker options, use "lib*.a" instead of "*.lib".
---- E.g. instead of linking to "OpenGL32.lib", link to "libOpenGL32.a"


Quote:
Original post by Velvet Leopard
I guess I am going to try and find specific C::B game tutorials. That or go out and buy that friggen Microsoft junk.


Tutorials specific to making games shouldn't really have much to do with which IDE you're using... What kind of IDE-specific stuff do these tutorials cover?

Don't bother buying VC6 - it's an abosolute peice of junk (it's not even "C++", but rather "Microsoft C with classes"). However, VC 2005 is downloadable from microsoft's website, for free.

Share this post


Link to post
Share on other sites
The tutorials this guy has is pure VC++ 6.0 for microsoft he covers nothing else. SO I can download and VC 2005 and it will have all the features needed to make games? Like the simple tutorial games like pong and such? I just want to get a setup going.

Share this post


Link to post
Share on other sites
Sorry, I edited the above post after you replied ^^

If you get VC 2005, it should have all the same features/options as VC 6.

Share this post


Link to post
Share on other sites
Ok. I am going to go get VC 2005. Is this the one where I MUST download the SP1 thing in order for my programs to be redistributed??? Are there any other important things I should need in order to code using VC 2005 like libraries and such other than SDL and OpenGL? Any wierd compiler switches or anything I should know about?

I thank you very much for your time.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!