Re: g++/gcc system errors

1998-09-16 Thread Marcus Brinkmann
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 "

Re: g++/gcc system errors

1998-09-15 Thread John Larkin
> 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++ .cc" First, make sure you have a function called main (and it'