I downloaded atom a couple of days ago and I can't seem to find the right package or where and how you compile the program. does anyone know?
Now, it's possible to run and compile (also debug) C and C++ program from within atom editor. Install gpp compiler package in atom editor.
Prerequisites:
Windows:
You'll need to install MinGW and add it to your system PATH.
Mac:
You'll need to install XCode.
Linux:
The GNU Compiler Collection may come with your distribution. Run which gcc g++
to find out.
To compile and run:
F5
To debug:
F6
Atom is "simply" a Text editor that is not able to compile anything. If you use a Makefile, then there are a few add-ons for building targets via key bindings.
If not, open a terminal and use the C compiler on your system. On Linux/Unix machines you probably want to use gcc:
gcc <your_source>.c -o <output_name>
Or take a look at This Package
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With