On Tue, Sep 15, 1998 at 04:29:39PM -0500, Matt Garman wrote:
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++
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
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
First, make sure you have a function called main (and it's
3 matches
Mail list logo