cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
How compile program with gcc ?
How compile program with gcc ?
Jul 6, 2011 at 12:48pm UTC
Arthur Lucas
(22)
In C I was using this command for compile: gcc example.c -o example.exe
How is it in C++ ?
Jul 6, 2011 at 1:16pm UTC
jody
(6)
To compile C++ you have to use 'g++' instead of 'gcc':
g++ example.cpp -o example.exe
Jul 6, 2011 at 2:37pm UTC
Arthur Lucas
(22)
Oh, ok thank you.
Topic archived. No new replies allowed.