How to setup C on Windows - I am setting up a new machine for programming

  Рет қаралды 3,311

Dani Crunch

Dani Crunch

Күн бұрын

Пікірлер: 41
@jd4rce
@jd4rce 8 ай бұрын
I always dislike the fact that I have to install Visual Studio to develop in C/C++. I'm more involved with Linux, but sometimes I would like to work on Windows. Thank you for sharing your knowledge about development on Windows; it's invaluable.
@Finkelfunk
@Finkelfunk 8 ай бұрын
I never understood why Microsoft makes such a deliberate effort to make programming in C that much more difficult on Windows. It's as if they want you to stop developing something better.
@kreuner11
@kreuner11 8 ай бұрын
You don't have to. You may use mingw
@lliamnan
@lliamnan 7 ай бұрын
this was top notch dude
@starc0w
@starc0w 7 ай бұрын
Very good! Thx!🍀 Your whole approach is really very good! ✨ Also that you use a batch file (I do the same): Simply great!
@miikavihersaari3104
@miikavihersaari3104 8 ай бұрын
Thanks Dani for making these videos!
@Pedro-jj7gp
@Pedro-jj7gp 4 ай бұрын
Awesome video! Do you think you could make a longer in-depth tutorial on using the debugger? I think it'd be very helpful! :)
@velikanskaglava2087
@velikanskaglava2087 8 ай бұрын
Thank you. Nice approach, useful!
@jaitjacob
@jaitjacob 8 ай бұрын
this was really useful.. i really hope you make more videos. e.g. compilation and linking(static .lib, dynamic .dll)
@watashiwahatchi
@watashiwahatchi 8 ай бұрын
This is awesome
@cybernit3
@cybernit3 8 ай бұрын
The sublime text editor looks good but not free; there is also notepad++ which is sort of good and basic. Thank you for some tips to setting up the tools for C programming for Windows; I assumed you had to install Visual Studio.
@DaniCrunch
@DaniCrunch 8 ай бұрын
I mean you can use it for free, but it will pop up a message box every now and then to tell you to register. Should have mentioned that in the video. I do own a license for it but also haven't added the license to the laptop install haha. Plenty of other free options available though, that is true.
@Zeioth
@Zeioth 8 ай бұрын
On Linux it takes literally one line: sudo apt install gcc
@arunavabasak8330
@arunavabasak8330 8 ай бұрын
sudo apt install build-essential
@georgehelyar
@georgehelyar 8 ай бұрын
To install build tools, you can go to the Microsoft download page for visual studio, scroll down and expand "tools for visual studio", and then to "Build Tools for Visual Studio 2022" This is really useful if you want to set up a self hosted build agent for CI/CD too.
@DaniCrunch
@DaniCrunch 8 ай бұрын
I failed to mention that the PortableBuildTool installation also leaves out some UWP and WinRT stuff. I really just tried to go with a minimal installation. And as far as i know the build tools package needs you to use the bat script to init environment variables for the command prompt (or you use the cmd shortcut for developers that it provides). But yeah I don’t know how i ended up on that msdn site for build tools when they are just available in the way you described.
@georgehelyar
@georgehelyar 8 ай бұрын
I think you can pick which workloads and components you want to install with command line arguments on the installer too but it's been a while since I tried. As well as compilers and runtimes, this could include tools like git, cmake, vcpkg etc I think but I can't remember how much of that is in the build tools and how much is in the full VS installer
@DaniCrunch
@DaniCrunch 8 ай бұрын
@@georgehelyar Yeah I do remember that being in the full VS installer. I should check out the build tools installer when I have to setup a new machine again. Was just so used to the PortableBuildTools installer haha
@alimctavish998
@alimctavish998 8 ай бұрын
great video ! ........ why there is a newd interest in c recently ?
@DaniCrunch
@DaniCrunch 8 ай бұрын
I noticed in the places I frequent online that C/C++ interests have spiked after the whitehouse released guidance on memory safe languages. It is rather silly and could just be a coincidence.
@alimctavish998
@alimctavish998 8 ай бұрын
@@DaniCrunch basically i have an interest these days on c , after i coded for sometime with c++ and opengl , now i feel like i wanna know more so started to work with c cuz some sdks like pspsdk are written in c , thats why i asked this question cuz i rencently started developing in c
@DaniCrunch
@DaniCrunch 8 ай бұрын
Nice. Making stuff for the Psp sounds like fun.
@androth1502
@androth1502 8 ай бұрын
US government said don't use C, so naturally, people don't trust the government (with good reason) and do the exact opposite.
@dankodnevic3222
@dankodnevic3222 8 ай бұрын
VS Code would be good alternative for editor with a ton of extensions, which can easily switch between CL, GCC....
@pacstrap9370
@pacstrap9370 8 ай бұрын
linux: apt install gcc Done!
@user-tw2kr6hg4r
@user-tw2kr6hg4r 8 ай бұрын
some people have to develop for windows
@aphextwiner
@aphextwiner 8 ай бұрын
​@@user-tw2kr6hg4r build for windows in linux
@ImRiz1
@ImRiz1 8 ай бұрын
or just double click on codeblock.exe setup and done instead of this stupid ass tutoriAl !!!!
@androth1502
@androth1502 8 ай бұрын
that's not "linux" that's ubuntu. meh. if you're going to bother with linux, might as well use the best linux distro there is; microsoft windows. you can have ubuntu and several other linux-based OSes running at the same time.
@revengerwizard
@revengerwizard 8 ай бұрын
Only Microsoft could have used / as a cmd option character
@DaniCrunch
@DaniCrunch 8 ай бұрын
Yeah it is awkward haha. I saw someone use - for cl as well so maybe they now support both. The docs however still only list / so I went with that.
@wertigon
@wertigon 8 ай бұрын
Here are my failproof instructions: Step 1, install WSL. Step 2, apt install build-essential git vim cmake Step 3, git gud with vim, gcc and git That's it folks! Best of it all, no need to care about licenses and complex IDEs :) Other than that, msys2 does not require a Linux VM (Which WSL essentially is) or any other steps than adding the bin folder to your $PATH.
@newsofthenerd
@newsofthenerd 8 ай бұрын
installing Linux inside of a malicious OS will not help, you need to remove any viruses from your computer first.
@imrank340
@imrank340 8 ай бұрын
Increase the Font size please.
@DaniCrunch
@DaniCrunch 8 ай бұрын
I noticed too late in the editing stage that I haven’t used the usual font sizes since everything was recorded from a laptop this time around. I tried to zoom in as best as I could without the footage looking bad. But most of the information about the commands should be on the slides with bigger font. Don’t think you’ll miss much else.
@johnnylee3505
@johnnylee3505 8 ай бұрын
Just install Msys2
@TokyoXtreme
@TokyoXtreme 8 ай бұрын
"pofit"?
@DaniCrunch
@DaniCrunch 8 ай бұрын
That was a typo 🤣
@plato4ek
@plato4ek 8 ай бұрын
It's better without music. Or at least consider making it MUCH more quiet.
@zg9xUmvV
@zg9xUmvV 8 ай бұрын
why are you still using windows...? :\
Rust: When C Code Isn't Enough
8:26
CodeAhead
Рет қаралды 175 М.
CLIs Are Making A Comeback
53:54
ThePrimeTime
Рет қаралды 207 М.
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 19 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 2,9 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 88 МЛН
Why do gay people sound like that?
5:26
AsapSCIENCE
Рет қаралды 3,1 МЛН
i wrote my own memory allocator in C to prove a point
5:23
Low Level
Рет қаралды 400 М.
Hacking a Web File Manager | THM CTF
15:13
Dragkob
Рет қаралды 1,4 М.
Let's get rid of it - Compiling C without the C Runtime
15:15
Dani Crunch
Рет қаралды 41 М.
Making Simple Windows Driver in C
7:26
Nir Lichtman
Рет қаралды 365 М.
How to Debloat Windows 11/10
12:21
Mental Outlaw
Рет қаралды 477 М.
2 Years Of Learning C | Prime Reacts
22:24
ThePrimeTime
Рет қаралды 314 М.
Is the Ghostty terminal worth the hype?
15:21
typecraft
Рет қаралды 120 М.
Ranking Code Editors & IDEs - Tierlist
13:35
NeuralNine
Рет қаралды 23 М.
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 19 МЛН