Home > Backend Development > C++ > Whoever Said You Need An IDE To Program In C?

Whoever Said You Need An IDE To Program In C?

DDD
Release: 2024-09-18 13:12:02
Original
557 people have browsed it

Note: This guide is for Windows only and the steps might differ for Mac and Linux users

Let’s face it, IDEs can take up a lot of unnecessary room. So, forget all the noise you heard about using an IDE and just give me a minute of your time. In my life, C has been a language thrown around in semi-crowded rooms. Kinda like that one building you pass all the time on your way somewhere important to you. I never took a second to look into it. Mainly because I thought you needed an IDE or to install more stuff on your already full computer.

Whoever Said You Need An IDE To Program In C?

When I tried C for the first time, I was shocked. No, I didn’t download and install an IDE. I did something else instead. Something that you can do too ?. So what did I do? Well, I downloaded GCC, installed the C/C extension in VSCode, and started programming. Here are the steps:

  • Go to this website to download a GCC zip file

  • Download the latest version

  • Extract the zip file

  • Rename the extracted folder (make the name shorter, ex: gcc-14.1.0 )

  • Move the folder to the (C:) directory in files

  • Inside the folder, go to the bin folder

  • Copy the path to the bin folder

  • Go to your environment variables

  • Click on Path in System Variables

  • Add the path to the GCC bin directory to Path (System Variables)

  • Open the CMD ( Command Prompt )

  • Run gcc –version

  • Once you have verified GCC, make a folder ( ex: testing-c )

  • Open the folder in VSCode

  • Create a C file ( ex: testing1.c )

  • Copy and Paste this code:

  • Open CMD ( Command Prompt )

  • Go to your folder in CMD ( ex: testing-c )

  • Run gcc testing1.c

  • Run a or a.exe

Congrats, you are now on the bus that goes down C road. Have a seat and get ready for the bumps, wrong turns, and potholes. What makes this bus different is we’re going to be getting off at EVERY STOP because there is always a lot to learn on this trip.

With that being said, I can’t wait to learn C.

Happy Coding Folks!

The above is the detailed content of Whoever Said You Need An IDE To Program In C?. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template