This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: running just g++.



  In message <Pine.BSI.3.95.980228165923.6138B-100000@flex.com>you write:
  > ~/src/bug% /usr/local/bin/gcc
  > gcc: No input files
  > [core:ttyp1]
  > ~/src/bug% /usr/local/bin/g++
  > /usr/lib/crt1.o: In function `_start':
  > /usr/lib/crt1.o(.text+0x57): undefined reference to `main'
  > collect2: ld returned 1 exit status
  > 
  > This is not a bug or anything.  But why does g++ invoke the linker
  > (collect2) when there's no input files?  gcc does the right thing.  I
  > tought they both use the same driver?  This is a problem for configure
  > scripts that try to detect the compiler by running it without input files.
  > g++ returns an error code (1).
It's a bug in the g++ and g77 front ends.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]