g++/gcc system errors
While working on some C++ code for a programming assignment, I got the
following error:
/usr/lib/crt1.o(.text+0x36): undefined reference to `main'
collect2: ld returned 1 exit status
And that is simply after typing "g++ <file>.cc"
The other error is as follows:
If I mistakenly type "gcc <file>.cc" :
gcc: installation problem, cannot exec `cc1plus': No such file or directory
I know the correct thing to do is to call g++ explicitly when
compiling C++ code, but I'd like to fix the error.
Thanks!
Reply to: