Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

[SOLVED] Help with setting up SDL for C++ in CodeBlocks

sdl c++ setup codeblocks c++

  • This topic is locked This topic is locked
No replies to this topic

#1 Shasaur

Shasaur

    CC Lurker

  • New Member
  • Pip
  • 7 posts
  • Programming Language:C++, JavaScript, Visual Basic .NET, ActionScript
  • Learning:C++, Others

Posted 21 August 2012 - 02:21 AM

So I tried to setup SDL in codeblocks using a tutorial found here, however I got the following errors when I finished it:

||=== Mini-game, Debug ===|
C:\Mini-game\base.cpp||In function `int SDL_main(int, char**)':|
C:\Mini-game\base.cpp|6|error: `SDL' undeclared (first use this function)|
C:\Mini-game\base.cpp|6|error: (Each undeclared identifier is reported only once for each function it appears in.)|
C:\Mini-game\base.cpp|6|error: expected `;' before "SDL_Init"|
C:\Mini-game\base.cpp|9|error: expected `;' before "SDL_Quit"|
||=== Build finished: 4 errors, 0 warnings ===|



I have no idea how to fix it, I tried downloading older versions of SDL to see if that helped but I got the same errors. Can any of you help me?
  • 0





Also tagged with one or more of these keywords: sdl, c++, setup, codeblocks, c++

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download