SDL 2 Tutorial 1c [SETUP] Windows and MinGW Setup

preview_player
Показать описание
🚀 Get 100% Off Your First Month with CustomGPT! 🚀

Sign up for a Standard CustomGPT.ai subscription using my referral link and enjoy 100% off your first month. Plus, you'll help support my channel with a 15% commission at no extra cost to you!

If you like this stuff, as always, show the love through comments, likes, favorites, subscriptions, etc.

Thousands of free videos at

If you have any questions feel free to post them at

Our Website

Our games made using Cocos2d-x
------------------------------------------------------

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

Nobody pays attention to us non-IDE-ers, THANK YOU!
edit: also anyone using Emacs can assign a key for M-x compile which automatically runs the makefile command

phraggers
Автор

Is there any difference when writing in C? Because when I want to compile something, it says that there is no file ore directory for SDL2 and SDL.h.

crazydavelp
Автор

g++: error: unrecognized command-line option '-subsystem, windows' everything is the same

m_jdm
Автор

Thanks so much! Your instructions were really clear so I was able to follow along even where our directories and programs were different (I have MinGW downloaded through chocolatey, and writing code in c). I'm really excited to get started!

rhoudac
Автор

I following everything i needed to do and yet it still says that "SDL2/SDL.h" is non existant. There has to be something wrong but I don't know what. The internet has never helped me with anything programming related, or maybe that's because I'm unlucky. What is wrong?

elliotk
Автор

I don't know if I should trust this guy. He's always mixing up first and second. Just kidding

AkamiChannel
Автор

Fullscreen at 2:54 and I thought that was my PC. Got scared when you closed the window

Kino-Imsureq
Автор

I did everythig but i get this error when trying to compile g++ 01_hello_SDL.cpp -LC:\Dev\SDL2_MinGW_32Bit\lib -w -Wl, -subsystem, windows -lmingw32 -lSDL2main -lSDL2 -o 01_hello_SDL the output is At line:1 char:97
+ ... inGW_32Bit\include\SDL2 -LC:\Dev\SDL2_MinGW_32Bit\lib -w -Wl, -subsyst ...
+ ~
Missing argument in parameter list.
At line:1 char:108
+ ... include\SDL2 -LC:\Dev\SDL2_MinGW_32Bit\lib -w -Wl, -subsystem, windows ...
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [],
+ FullyQualifiedErrorId : MissingArgument

Emretokk
Автор

I get the error:
At line:1 char:118
+ ... nclude -LC:\SDL -w -W1, -subsys ...
+ ~
Missing argument in parameter list.
At line:1 char:130
+ ... SDL -w -W1, -subsystem, windows ...
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [],
+ FullyQualifiedErrorId : MissingArgument

Would it be possible for you to make a bat file and put it on your site or something?
Side Note: idk if this is relevant, but I'm using Powershell

mallock
Автор

I am a beginner at I didn't understand a single code from "if"

maniac
Автор

extremely useful - many thanks for sharing your knowledge

samdavepollard
Автор

Can everyone help me ? I tried and I have this error :

g++: error: unrecognized command line option -W1, -subsystem, windows

My config : Windows 7, mingw32

Thanks :)

anthogerber
Автор

Thanks for the video, tried really hard to get it working. but for some reason, i can run it from codeblocks by adding path and -lmingw32 -lSDL2main -lSDL2 command. but the executable cannot be run separately. says error

ziadhasan
Автор

unrecognized command line option '-wl, -subsystem, windows'
:(

Oussama-uogf
Автор

The instructions for installing MinGW explicitly say *NOT* to do anything with the System *"Path"* variable, and I notice very few people pay attention to that. It says to modify the User *"Path"* variable, not the System "Path" variable, which required me to go through the User Accounts to add "C:\MinGW\bin" to the User "Path" variable. I did not have that variable, so I had to create it. So my User Path looks like this Path=C:\MinGW\bin

haroldmcbroom
Автор

it somewhat worked...
i'm getting these errors:
cannot find -lSDL2main
cannot find -lSDL2
(they are not even being asked in the `Makefile`)

BILLPC
Автор

Christmas came early! This video is extremely helpful! It seems it's quite a niche situation for an inexperienced programmer to want to use SDL and C in windows without Visual Studio or something similar, so it's so hard to find an explanation or tutorial online on how to do just this. Thank you so much for making this though, it's a really well done video so is very easy to follow along.

ItsMrFresh
Автор

Got an error while compiling Makefile,
Error: 'mingw32-make.exe' is not recognized as an internal or external command, operable program or batch file .

Can you please help me there.

ankitjangiid
Автор

you could also just make a .bat file with the g++ command

teemumantyla
Автор

I got an error:

collect2.exe: error: ld returned 1 exit status

What shall I do to fix this?

madernomden
welcome to shbcf.ru