CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL Javascript Linux Forum

Compile C++ program using g++ on Linux

You are here : 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 links

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