SDL 2.0 C++ setup tutorial!!

preview_player
Показать описание
IN ADDITION I FORGOT TO TELL YOU THAT YOU NEED TO GO INTO THE BIN FILE OF YOUR SPECIFIC CONFIGURATION 686 OR X86 AND THE COPY THE SDL2.DLL FILE INTO THE SAME AREA THAT HAS THE EXE FILE!!! REMEMBER THIS OR IT WILL NOT WORK!!

This video basically show you how to get SDL 2.0 (the latest stable version) running with Dev-C++ for you to be able to make 2D and 3D games as such so that you will be able to carry out input handling as such.

Like challenge is 100!!

SDL 2.0 link:

Dev-C++ link:

Winrar link:

GCC compiler tutorial:

SDL2 API Documentation:

What to put in the parameters box:
-lmingw32 -lSDL2main -lSDL2 -lopengl32 -lglu32

hello SDL files:

Follow us on twitter:

Like us on facebook:

Subscribe!:
Рекомендации по теме
Комментарии
Автор

Bro I don't know if you will see this comment but after 8 years you still saving people's lives thanks 😊

chafaaouchaou
Автор

Thanks Bro this problem waste two days of mine and finally i found your video 😍

amazingswatvalleywithmhk
Автор

I'd never been able to get SDL working. I followed the tutorial and still get
"[Error] SDL2/SDL.h: No such file or directory"
I checked it and it's certainly there and linked just as instructed.
Please help. I tried both x86_64 and i686 on my 64 bit computer.

tylerpsensky
Автор

I am getting the following error:
[Error] SDL2/SDL.h: No such file or directory
Is there something I am missing??

gauravmittal
Автор

It works! Thanks :) (I just needed the parameters, that was my problem with installing SDL)

Wout
Автор

i follow the exact tutorial and the problem occur, the program compile with no errors but when i run the program then the SDL2.dll not found message pop out. and i download your hello_SDL.zip file and i run it then again, the SDL2.dll not found message pops . FYI i have dev C++ 5.4.2. any kind of help would be awesome dude.

deadpiece
Автор

Why I Always get the erros "undefined rference to SDL_init" or others "undefined reference"?
There is "undefined reference do "WinMain" too. I fixed it changing main into WinMain, but I'd like to know WHY this happens and WHY changing that worked.
And there is a lot of "undefined reference to " and a function of SDL.

rodrigoappendino
Автор

Umm. "Application Error: The application was unable to start correctly (0xc00007b). Click OK to close the application." Help?

Gazlamofy
Автор

i get an error: Makefile.win [Build Error] [sample-code.o] Error -1073741819
Please help ASAP
Thanks

shubhamgupta-ndol
Автор

why did you delete and show us it twice i dont get it

twoleggedcat_cs
Автор

Yeah I'm pretty sure that the other one is 64 bit, I had the same issue. It was a bit confusing. They probably should've labeled it with MinGW64 because if I'm not mistaken, that's what you would need to compile it anyway.

Spirrwell
Автор

CreateProcess: No such file or directory
Any Ideas??

MrPushuable
Автор

error no input file? while compiling

GrhumanilationTV
Автор

I am not entirely sure as I do not code in C myself, there may be a wrapper or something check the SDL website

VortexCode
Автор

Make sure you have linked all of the files up correctly

VortexCode
Автор

Make sure that you have linked all your things correctly and you follow the tutorial exactly, this may just be a minor error

VortexCode
Автор

I like to change the scene every now and then you know what I mean ? ;D

VortexCode
Автор

waaat. Windows XP rocks dude.
Why change ? D:

StarLink
Автор

Read the description I have a fix for that there.

VortexCode
Автор

you also dont speak clear hey guys dsadhsdfes ok

twoleggedcat_cs