₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,778 members, 8,513,633 topics. Date: Thursday, 05 November 2026 at 10:04 AM

Toggle theme

How To Install C/C++ On Windows.(resolved) - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › How To Install C/C++ On Windows.(resolved) (829 Views)

1 Reply (Go Down)

How To Install C/C++ On Windows.(resolved) by Nobody:
So for the past 12hrs I’ve been trying to run C/C++ codes on my pc with no success.
I’ve downloaded and installed the Microsoft C/C++ extension on vscode.
I equally installed code runner on vscode.
Then I downloaded and installed MinGw-W64 from sourceForge website.
I copied the file path and went and set it on environment variables.
After every every nothing.
Please who uses C/C++ on vs code here.
Is there any other way to go about this issue cause I’m tired; almost 3gb of data has been spent with no success?
Or should I just go for an IDE? Would it be less complicated?
Re: How To Install C/C++ On Windows.(resolved) by Nobody: 4:40pm On Apr 28, 2021
Issue has been resolved after several days.
Compiler installed and running.
So no one here could even help me out; damn. cry

Re: How To Install C/C++ On Windows.(resolved) by Karleb(m): 4:59pm On Apr 28, 2021
Rgade:
Issue has been resolved after several days.
Compiler installed and running.
So no one here could even help me out; damn. cry
It's because people hardly use C/C++ here.
Re: How To Install C/C++ On Windows.(resolved) by Nobody: 5:40pm On Apr 28, 2021
Karleb:
It's because people hardly use C/C++ here.
That’s true though.
It’s mostly JS,PY and PHP developers everywhere.
If not for school I don’t even know what would have taken me to C.
Time wey I suppose dey put into js.
Re: How To Install C/C++ On Windows.(resolved) by GreatAchiever1: 6:08pm On Apr 28, 2021
Nice, how did u do it? although, haven't finished learning c++ due to some projects but I hope to return to it, I used codeblocks while learning c++
Re: How To Install C/C++ On Windows.(resolved) by Nobody: 3:34am On Apr 29, 2021
GreatAchiever1:
Nice, how did u do it? although, haven't finished learning c++ due to some projects but I hope to return to it, I used codeblocks while learning c++
I missed the part where I had to navigate into the MinGw installer and manually mark the compilers I wanted for installation. That’s what I did differently.
Re: How To Install C/C++ On Windows.(resolved) by dharak: 7:25pm On Apr 30, 2021
Rgade:
So for the past 12hrs I’ve been trying to run C/C++ codes on my pc with no success.
I’ve downloaded and installed the Microsoft C/C++ extension on vscode.
I equally installed code runner on vscode.
Then I downloaded and installed MinGw-W64 from sourceForge website.
I copied the file path and went and set it on environment variables.
After every every nothing.
Please who uses C/C++ on vs code here.
Is there any other way to go about this issue cause I’m tired; almost 3gb of data has been spent with no success?
Or should I just go for an IDE? Would it be less complicated?
So sorry I'm just seeing this post now. I actually have some experience with C/C++ on windows. I went with the MinGW route. Specifically I installed cygwin on my windows machine and then added %CYGWIN_PATH%\bin to my environment variables. (%CYGWIN_PATH% is the folder where cygwin was installed).

So in the end I compile with

gcc program.cpp -o program.exe
.\program.exe
Re: How To Install C/C++ On Windows.(resolved) by Nobody: 5:22pm On May 01, 2021
dharak:
So sorry I'm just seeing this post now. I actually have some experience with C/C++ on windows. I went with the MinGW route. Specifically I installed cygwin on my windows machine and then added %CYGWIN_PATH%\bin to my environment variables. (%CYGWIN_PATH% is the folder where cygwin was installed).

So in the end I compile with

gcc program.cpp -o program.exe
.\program.exe
Thanks. Turns out it wasn’t that much of a problem.
I just installed the MinGw installation wizard on the computer and assumed I was done grin
Turned out you still have to go through the wizard to download the needed files.
1 Reply

Between C, C# , C++ And Java • C/C++ Internship • 2 • 3 • 4

Please I Need A Devop Mentor • Online Banking Script • Alx Whala