I\'m trying to compile a simple Hello World program in C++ but I keep getting the following error...why?
gcc -o HelloWorldCompiled HelloWorld.cc /tmp/ccvLW1e
Use g++ not gcc. gcc is a C compiler, whereas g++ is a C++ compiler.
g++
gcc
g++ -o hwcompiled helloworld.cc
Then to execute your compiled program:
./hwcompiled