Chicken Dinner
May 6th, 2008, 10:47 PM
I am having trouble with gcc. I tried making a "hello world" program in Vim, and I received an error when I tried to compile it with this code (which I found on the internet).
gcc -Wall -o foo ubuntu.cpp
Ubuntu is the name of the file.
After entering it after a colon (Ex: mode), this is the error I receive.
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Does gcc not come with everything to compile C++ code? If anyone can help me that far, I also haven't a clue how to run the program after its compiled, so any help with that would be great too. I'm an absolute beginner so any answers will be helpful.
Thank you.
gcc -Wall -o foo ubuntu.cpp
Ubuntu is the name of the file.
After entering it after a colon (Ex: mode), this is the error I receive.
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Does gcc not come with everything to compile C++ code? If anyone can help me that far, I also haven't a clue how to run the program after its compiled, so any help with that would be great too. I'm an absolute beginner so any answers will be helpful.
Thank you.