Horror of horrors, I now find that my computer didn't come with gcc already! Because I was in a clicky-clicky mood, I went to synaptic package manager, and installed all the gcc- looking things.
I made some crappy C++ program, and tried to compile:
gcc test.cxx
But my computer cried:
gcc: installation problem, cannot exec 'cc1plus': No such file or directory
Boo hoo hoo. The oracle (internet) suggested:
sudo apt-get install g++
And all was merry. However, mostly I want to remind myself how to compile, since I write so little C code recently:
gcc test.c -o test
Where the last flag is to put the output in "test". Huzzah.
Tuesday, 29 May 2007
Subscribe to:
Posts (Atom)