How do I run and compile my C code?

  Рет қаралды 8,532

CodeVault

CodeVault

Күн бұрын

Пікірлер: 33
@tiagocoelho2158
@tiagocoelho2158 4 жыл бұрын
Hey man, i had a project in C i had to use memory management, pointers and files and your videos really helped me through the execution of the project. I just wanna thank you for amazing content and you are a great explainer, really thankful for finding your youtube channel.
@AMITYADAV-uh9ru
@AMITYADAV-uh9ru 4 жыл бұрын
Hey dude, first of all big thanks to you for giving us such great content. Can you please make a video on how to create a make file and how to use it in C.
@CodeVault
@CodeVault 4 жыл бұрын
For sure will look into it
@_omartariq
@_omartariq 4 жыл бұрын
Brilliant solution
@generatorstraconegoczasuin9132
@generatorstraconegoczasuin9132 2 жыл бұрын
You are the greatest!
@scsf1
@scsf1 2 жыл бұрын
Hey! I found your videos very useful. Thanks! I've got a one question. I use VS Code on WSL2 and everything works like a charm except one thing. There is no popping up tooltip for linux features like fork() or pipe. I've installed C/C++ extension for IntelliSense and it works, but no tooltips for linux functions. Did you maybe install another extension?
@CodeVault
@CodeVault 2 жыл бұрын
Hmm, I haven't tried VSCode on WSL. I am running on native Linux. I think you need to specify some header file directory to the extension so VSCode knows where to look for definitions
@hugo-garcia
@hugo-garcia 4 жыл бұрын
I want to compile my codes with GNU make, however on both linux and windows (Mingw) I get an error "no such file or directory". GNU make always show this error no matter what makefile I run no matter which OS I use. I've tried multiple makefiles from various different repositories. Even a clean install of Linux make show this error.
@CodeVault
@CodeVault 4 жыл бұрын
What's your makefile looking like?
@hugo-garcia
@hugo-garcia 3 жыл бұрын
@@CodeVault The makefile is correct since the problem was in every makefile I tried was not a problem with one makefile only. So I reinstalled mingw32 and make and configured again the environment paths and now is working. I probably messed up something without realizing during the installation and some folder was not correctly configured.
@semyonarteev3100
@semyonarteev3100 11 ай бұрын
how to use vscode for union of cpp and c files in one project folder? there is a problem with lauch and task file because if you want to run c and cpp files you need to choose between different tasks. If I want to use a particular task for c and another particular task for cpp depending on what a extension of the file is what should i do?
@CodeVault
@CodeVault 11 ай бұрын
As far as I know you can't do that out of the box. You could use a plugin that adds variable commands based on file extensions such as this one: marketplace.visualstudio.com/items?itemName=rioj7.command-variable
@venkatesh4760
@venkatesh4760 4 жыл бұрын
Informational Video thanks for your efforts..
@FarshadGhanbari
@FarshadGhanbari 3 жыл бұрын
I use WSL2 with remote-wsl extention on VSCode. Not sure which method is better.
@CodeVault
@CodeVault 3 жыл бұрын
I tried with WSL but all I could get was build/run capabilities. Couldn't set up the debugger for the life of me :(
@bsgamer5069
@bsgamer5069 3 жыл бұрын
What about making a video about object oriented concepts in c?
@CodeVault
@CodeVault 3 жыл бұрын
I'd rather teach OOP in a language that actually was made for OOP so it might not be in C
@fernando7517
@fernando7517 3 жыл бұрын
👍👏👏
@honeybadger781
@honeybadger781 4 жыл бұрын
Why not just use linux?
@CodeVault
@CodeVault 4 жыл бұрын
Because sometimes I have to shoot small sections that I missed that I only find during editing. And editing videos on Linux is not yet there...
@honeybadger781
@honeybadger781 3 жыл бұрын
@@CodeVault I can understand that. I know Linux youtubers use kdenlive. You can download the latest version as an app image which has all the dependencies built in. But I dont edit videos so I cant say how good it is.
@CodeVault
@CodeVault 3 жыл бұрын
I will try it one day. Thanks
@noweare1
@noweare1 3 жыл бұрын
If you use any kind of 3d modeling or high end CAD then you need windows. That's the only reason i still have my windows computer. So i have a dual boot machine.
@honeybadger781
@honeybadger781 3 жыл бұрын
@@noweare1 Is CAD software mainly proprietary? I think Blender for 3D runs well on linux.
@newsofthenerd
@newsofthenerd 2 жыл бұрын
Why all this monkeying around with windows and Linux server all this silly duct tape to get a half way working system. Why not and this is just a thought. Not run Windows at all. And you know just run linux since Linux is more suited to programming and then you don't need any of this Jim crackery. Lol
@CodeVault
@CodeVault 2 жыл бұрын
The simple answer is: It was more reliable to run the editor and record everything on Windows. On Linux I had all sorts of issues and strange artifacts when recording. I tried running it in a VM (some of the videos are actually recorded in there) but that also was tricky to work with (input from my mouse would sometimes get missed, clipboard wasn't working properly, fonts weren't displaying well etc.) Another reason is, while editing, I sometimes realise I missed explaining something very small so I record it on the spot. It's much faster than dual-booting back into Linux to record that part. And unfortunately video editing on Linux was a no-go last time I tried. But, I don't understand why you think this is a "half way working system". It performs well, if not, better than running it on native Linux. I get all the features and openess of a Linux machine with all the stability of Windows. It's basically the best of both worlds if you have a local Linux server. But hey, I might give it a try at some point in the future since I already use Linux full-time for my job
@newsofthenerd
@newsofthenerd 2 жыл бұрын
@@CodeVault ah you mean video recoding? Yeah I can see that. Games and video editing is much better supported in Windows. But coding lol. I didn't know anyone did any serious development in Windows. It's not really a supported or serious platform for that.
@newsofthenerd
@newsofthenerd 2 жыл бұрын
@@CodeVault also you may want to stay way from ubuntu. 15 years ago it was heavily marketed to non linux people as being an easy distro for again non linux people. When it was simply debian copied and rebranded. But that was 15 years ago. Now it's just a disused distro that once tried to turn its data collection into a company. Its not the distro it was once thought to be by the non linux community.
@CodeVault
@CodeVault 2 жыл бұрын
Maybe for C is not that well suited but based on the survey from StackOverflow insights.stackoverflow.com/survey/2021#operating-system a lot of developers still use Windows for development (maybe a lot are beginners, but still). One time I used Manjaro and, after a certain update it broke my display drivers and a lot of other dependencies to the point I simply couldn't fix it back to how it was, almost switched back to Windows that time, but I installed Debian instead and things are now fine. Haven't used Ubuntu in a really long time actually but thanks for the info!
@newsofthenerd
@newsofthenerd 2 жыл бұрын
@@CodeVault One time I updated and it broke my.... this sounds like my entire Windows experience. And yeah definitely right about that people learning to develop are going to be using what ever system is already installed which is Windows by default. 1: it was forced on them and 2: they don't know yet what they are doing. 3: they are using a platform independent language that doesn't require any tools at all. I did say gaming is better on Windows that only because developers target the system on everyone's computer. It's definitely not more stable. At games at video editing at anything at all. Windows is a very unstable operating system. I remember trying to get forza 7 to work on Windows. Microsoft OS, Microsoft Game, Microsoft Store. You would think it would just work. And a week later yeah it kinda did. After a week of pulling my hair out. So yeah works on Windows not linux. But better? More stable? Never. Windows doesn't have a compiler installed right or terminal or any access to the kernel still right? I have 3 computers running linux and my xbox crashes more often.
Intro to recursive functions in C
17:38
CodeVault
Рет қаралды 13 М.
Visual Studio Code for C/C++ on Linux (2021)
13:04
CodeVault
Рет қаралды 114 М.
Code Server Is An AWESOME Replacement for VS Code!
13:01
Jim's Garage
Рет қаралды 28 М.
Format and parse datetime in C
17:41
CodeVault
Рет қаралды 4,2 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 1 МЛН
This Zsh config is perhaps my favorite one yet.
17:24
Dreams of Autonomy
Рет қаралды 283 М.
Let's Create a Compiler (Pt.1)
1:11:03
Pixeled
Рет қаралды 577 М.
Why are function pointers useful?
6:43
CodeVault
Рет қаралды 32 М.
Sorted linked list
18:11
CodeVault
Рет қаралды 18 М.
Measure execution time in C (for Linux and Windows)
23:04
CodeVault
Рет қаралды 11 М.
How Do Linux Kernel Drivers Work? - Learning Resource
17:02
LiveOverflow
Рет қаралды 563 М.
When to free memory in C
13:45
CodeVault
Рет қаралды 10 М.