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.
@Finkelfunk8 ай бұрын
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.
@kreuner118 ай бұрын
You don't have to. You may use mingw
@lliamnan7 ай бұрын
this was top notch dude
@starc0w7 ай бұрын
Very good! Thx!🍀 Your whole approach is really very good! ✨ Also that you use a batch file (I do the same): Simply great!
@miikavihersaari31048 ай бұрын
Thanks Dani for making these videos!
@Pedro-jj7gp4 ай бұрын
Awesome video! Do you think you could make a longer in-depth tutorial on using the debugger? I think it'd be very helpful! :)
@velikanskaglava20878 ай бұрын
Thank you. Nice approach, useful!
@jaitjacob8 ай бұрын
this was really useful.. i really hope you make more videos. e.g. compilation and linking(static .lib, dynamic .dll)
@watashiwahatchi8 ай бұрын
This is awesome
@cybernit38 ай бұрын
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.
@DaniCrunch8 ай бұрын
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.
@Zeioth8 ай бұрын
On Linux it takes literally one line: sudo apt install gcc
@arunavabasak83308 ай бұрын
sudo apt install build-essential
@georgehelyar8 ай бұрын
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.
@DaniCrunch8 ай бұрын
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.
@georgehelyar8 ай бұрын
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
@DaniCrunch8 ай бұрын
@@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
@alimctavish9988 ай бұрын
great video ! ........ why there is a newd interest in c recently ?
@DaniCrunch8 ай бұрын
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.
@alimctavish9988 ай бұрын
@@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
@DaniCrunch8 ай бұрын
Nice. Making stuff for the Psp sounds like fun.
@androth15028 ай бұрын
US government said don't use C, so naturally, people don't trust the government (with good reason) and do the exact opposite.
@dankodnevic32228 ай бұрын
VS Code would be good alternative for editor with a ton of extensions, which can easily switch between CL, GCC....
@pacstrap93708 ай бұрын
linux: apt install gcc Done!
@user-tw2kr6hg4r8 ай бұрын
some people have to develop for windows
@aphextwiner8 ай бұрын
@@user-tw2kr6hg4r build for windows in linux
@ImRiz18 ай бұрын
or just double click on codeblock.exe setup and done instead of this stupid ass tutoriAl !!!!
@androth15028 ай бұрын
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.
@revengerwizard8 ай бұрын
Only Microsoft could have used / as a cmd option character
@DaniCrunch8 ай бұрын
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.
@wertigon8 ай бұрын
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.
@newsofthenerd8 ай бұрын
installing Linux inside of a malicious OS will not help, you need to remove any viruses from your computer first.
@imrank3408 ай бұрын
Increase the Font size please.
@DaniCrunch8 ай бұрын
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.
@johnnylee35058 ай бұрын
Just install Msys2
@TokyoXtreme8 ай бұрын
"pofit"?
@DaniCrunch8 ай бұрын
That was a typo 🤣
@plato4ek8 ай бұрын
It's better without music. Or at least consider making it MUCH more quiet.