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

Let's make a game in C++ (SDL,OpenGL) - Episode 1 - Setup

Loading...

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

Uploaded by on Mar 12, 2011

I have decided to start a "Let's make a game" tutorial-like video series. In the series I will show you how to make a game from scratch in C++ using SDL and OpenGL.

Next video:
http://www.youtube.com/watch?v=VJGqalveGmM

Episode 1 - Here I explain how you setup your desktop (windows,linux) to be able to compile and run SDL applications.

For additional info about SDL programming:
http://www.lazyfoo.net/SDL_tutorials/index.php

My blog:
http://www.redgamedevblog.blogspot.com/

My Twitter:
http://twitter.com/includeLuka

Please give feedback

Link to this comment:

Share to:

Uploader Comments (RedReaper132)

  • When you opened up the bin for "Test", yours had a Test.exe. Mine did not, so I made one. But now when I run application it says the execution of the file failed.

  • @HeroMaar The Test executable is created when you compile the program, so if it isn''t there, then the program didn't compile.

  • Help I ran Code:Blocks for the first time.. I used the VisualC++ SDL Files and I get the error below HELP ME!!

    | | | | | | | | | | | | | | | |

    vvvvvvvvvvvvvvvvv

  • @SBNDude If you use Code::Blocks then you can't use the libraries for Visual Studio, you have to download the other ones like it's showed in the video.

  • "error: 'SDL_QUIT() ' cannot be used as a function".... why could it be going wrong????

  • @G4br13lwin Because it is SDL_Quit() and not SDL_QUIT()

see all

All Comments (102)

Sign In or Sign Up now to post a comment!
  • ld.exe||cannot find -l-lmingw32?|

    wtf plz help

  • @B34stTheD34d If you cant solve problems stop try to lern how to program games.

  • How can I put the build (the part which was down) and Test project (again back bedcause i have deleted them some how.

  • @Game4Everz its lmingw32 not lmgwing32

  • @LilCed334

    Have you moved the file?

  • this is a horrible tutorial and should be removed from youtube, your tutorial has many errors that you do not explain how to fix.

    and you never respond to any of your users comments, therefore, problems are never solved.

    congratulations sir, you are a DICK!

  • If anyone is getting a console window appearing alongside the application window, just add the following flag:

    -mwindows

  • C:\Users\Jeremy\Documents\Epic­Bot\Test\main.cpp|5|error: SDL.h: No such file or directory|

    C:\Users\Jeremy\Documents\Epic­Bot\Test\main.cpp||In function 'int main(int, char**)':|

    C:\Users\Jeremy\Documents\Epic­Bot\Test\main.cpp|9|error: 'SDL_INIT_EVERYTHING' was not declared in this scope|

    C:\Users\Jeremy\Documents\Epic­Bot\Test\main.cpp|9|error: 'SDL_Init' was not declared in this scope|

    C:\Users\Jeremy\Documents\Epic­Bot\Test\main.cpp|11|error: 'SDL_Quit' was not declared in this scope|

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