g++ frontend weirdness

Michele Bini mbini@dada.it
Wed Apr 15 16:12:00 GMT 1998


When no input files are specified on the command line g++ (v 1.0.2) complains:

  /usr/lib/crt1.o(.text+0x36): undefined reference to `main'
  collect2: ld returned 1 exit status

which is a bit misleading IMHO (I tought that my g++ executable was 
corrupted...), even because gcc says

   gcc: No input files

and gnu g++ v2.7.x behaved like egcs gcc

PS: g77 and c++ show the weird g++ behavior, too.

-- 
                                   Michele Bini: mbini@dada.it





More information about the Gcc-bugs mailing list