Bug in g++ --syntax-only

Tom Tromey tromey@redhat.com
Fri Jan 12 14:59:00 GMT 2001


I was suprised by this:

    creche. g++ --syntax-only foo.cc 
    g++: -lstdc++: linker input file unused because linking not done
    g++: -lm: linker input file unused because linking not done

I think addition of those -l flags should be disabled when
--syntax-only is given.  I find these messages counterintuitive.

Tom


More information about the Gcc-bugs mailing list