Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test

Compile C++ program using g++ on Linux

Home » C++ » Compile C++ program using g++ on Linux

Linux command to compile c++ program using g++ on Linux
g++ temp.cpp -o temp.out

Running executable on Linux
./temp.out



Compile C program using gcc on Linux
gcc temp.cpp -o temp.out

Running executable on Linux
./temp.out


Other Categories

MCQ on C Programming MCQ on C++ Programming 138+C++ F2F Interview Questions Basic Computer Questions Solved C programs Solved C++ programs