Quote:
Originally posted by twolf
Let me remember the extension of C++.
ehm :-)
I believe it might be this one:
*.cpp
but if it doesn't work try: *.cp; *.c++; *.c+
|
Plus: *.C and *.cxx
All are accepted by gcc
Quote:
and a simple line command:
gcc -o output_file your_file.cpp <enter>
|
For C++ file I suggest rather
g++ -o output_file your_file.cpp <enter>
G++ is C++ compiler, GCC compiles C files. When you try to compile a C++ file using gcc, you may run into trouble (linking problems).