I don't know how to compile and run a C++ file in GNU Emacs. I searched on the various sites and stackexchange network, but from them what I understood was write something like make compile
, and I don't know what does that mean, obviously compiling something. I even have looked at GNU Emacs reference card and Dired reference card on gnu.org, but I could not find a helpful code and explanation of how to compile and run a C++ file.
Can someone help me with compiling and running, how each is done separately, and what steps are? For example, I see g++
, gcc
, -o
, -Wall
, foo.cpp
, ./.a
codes elsewhere but I don't know their function. Can someone explain their function, please? I have seen somebody's answer on stackoverflow which said:
if something is on your
~/PATH
What is that? How to put something in ~/PATH
.
I know I'm asking for too much, but I don't want to use ready-go IDEs or compilers, I want to use GNU Emacs, and I want to learn it hard way. Thanks.
PS: I use Linux Ubuntu 16.somenumber as an OS. Thanks.