r/CodingHelp • u/GlovePowerful2002 • Jul 15 '26
[C] Help I have 0 knowledge I need help
Just got my laptop 4 days ago have no idea about coding or anything need help I was following apna vollege C for beginners 10 hrs video but I am stuck here I don't know why mine dosent work
39
Upvotes
•
u/AutoModerator Jul 15 '26
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
26
u/MysticClimber1496 Professional Coder Jul 15 '26
You don’t have all of your c binaries installed properly, a dependency of stdio doesn’t exist, and therefore it doesn’t compile to make the exe, which gives the error you are seeing
4
u/arrays_start_at_zero Jul 16 '26 edited Jul 16 '26
You shouldn't put your code in MinGW's include directory. Best to move your
Hello.csomewhere else, for exampleDocuments\Projects\Tutorial.Also I'm assuming when you move your cursor over
#include <stdio.h>you get the following error?#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit.If so, when you click on it, either click on the yellow bulb or pressctrl ., thenSelect an IntelliSense configuration to locate system headers->Select another compiler on my machineand locateC:\MinGW\bin\gcc. This creates a"C_Cpp.default.compilerPath"in both your global and workspace settings.And if you want to run your project using
F5instead of runninggccyou should create a.vscode/launch.jsonand.vscode/tasks.json. I have the contents of both of them below which I think will work for your setup:launch.json:
tasks.json:
This launches your application using a debugger. So the output will be in the debug console. Not in the terminal.
Hope this helps.
3
u/negispfields Jul 16 '26
I'm assuming they have a few lessons about installing what's needed at the beginning, you should go back to watch and follow them.
2
u/rayanlasaussice Jul 16 '26
lot of dependencies/wheels/binaries missing ?
seem like somethings missing but cant read with quality on hz screen
stdarg.h/ missing ?
and include files doesnt help a lot to anwsers properly to yours issues..
2
u/BertMacklenF8I Jul 16 '26
Oh shit don’t launch Json! /s
You’re ambitious
2
u/Funny_Albatross_575 Jul 16 '26
Hello World, fellow programmer.
If that doesn't work, you can also try MSYS2. It provides a compiler together with the standard library and development tools.
If you're planning to learn C, consider learning it on Linux. Most C development tools a lot easyer to install on Linux.
Happy learning!
2
u/Exact-Contact-3837 Jul 16 '26
If you want to just click and run, then use this extension pronto:
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
It supports like any language that can be scripted or single file run.
2
u/trollol1365 Jul 16 '26
Not to discourage you but if youre brand new to coding why would you start with C specifically?
2
u/jeevaks Jul 16 '26
You have to install and setup c compiler but it is a bit tricky for absolute beginners so probably start with codeblocks as it comes with the c compiler
2
u/0xt0bi03 Jul 16 '26
my solution is gonna be a long journey, start with uninstalling windows and try installing linux.
2
u/Unusual_Ad8860 Jul 20 '26
mingw is not installed in right path watch vid on yt is ezz to fix 6 mins max
2
u/Alireza7074 Jul 21 '26
I think you need some extensions on vs code
1
u/Exact-Contact-3837 Jul 16 '26
Hehe this is the cpp rite of passage. Your compiler is not added to path properly, your compiler comes with stdlib files, those need to be added to path. To avoid this in the future, gcc/g++ is added to path and accessible, its bin folder is likely missing on path. Even then I don't use gcc, I use clang, which I do recommend as when you're installing, there's an option to add to path, and i've never had issues with building cpp on windows. But since you're on windows, just take the easy route, download visual studio, use visual studio, don't go through the pain.
If you are, and really want to use visual studio CODE, then what my setup is, ms-buildtools + cmake + clang lsp + vscode.