How compile program with gcc ?

In C I was using this command for compile: gcc example.c -o example.exe
How is it in C++ ?
To compile C++ you have to use 'g++' instead of 'gcc':
g++ example.cpp -o example.exe
Oh, ok thank you.
Topic archived. No new replies allowed.