Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

SDL Tutorial 1(Setting Up SDL)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,891
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 21, 2009

This video should show you how to set up SDL in Code::Blocks.

This video pretty much assumes that you know C, or C++.

Code::Blocks IDE: http://www.codeblocks.org

SDL: http://www.libsdl.org

For the Compiler Search Directory add:
(SDL root folder)/include

For Linker Search Directory add:
(SDL root folder)/lib

For Other Linker Settings add:
"-lSDLmain" and "-lSDL"

Note: those are lowercase "ells" and not capital "eyes".

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (XianForce)

  • I am new to SDL and I am getting error: "'(SDL_EventType)12u' cannot be used as a function" in the spot were SDL_QUIT();

  • @Digby0907 C and C++ are case sensitive languages. SDL_QUIT is an event type, SDL_Quit() is a function. So when you put "SDL_QUIT();" You are basically referencing that event type, and using it as a function... Since it's not a function, you get that compiler error there ;). Hope that helps :).

see all

All Comments (43)

Sign In or Sign Up now to post a comment!
  • I'm trying to get SDL up and running, was wondering if you might be able to help. I get an error every time I try to do what lazyfuu said. "Application unable to start correctly (0x000007b)"

    Only debug info I can get is this

    "mingw32-g++.exe: C:\SDL\SDL-1.2.15: linker input file unused because linking not done

    Linking executable: bin\Debug\SDLTESTING.exe"

    Google is no help.

    I'm on windows 7 64bit.

  • Thank you :)

  • hmm min 0.43 tasty...

  • Ok, dude fix your mic, at points like 0.45 it's not fun to hear you sniff and swallow that loudly, just move the mic away a tad.. But awesome tutorial, thanks this helped :)

  • @ElegyForTheMasses Hmmm... Well, I don't really have experience with VS 2010... Google would probably be your best bet :o.

  • @XianForce Yeah, but the IDE just shows any of the SDL methods as black text and intellisense isn't recognizing them. Other than that the code works fine

  • @ElegyForTheMasses Hmm... And everything compiles and links just fine?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more