3.3 g++ standard libraries

llewelly@xmission.com llewelly@xmission.com
Fri Apr 2 15:29:00 GMT 2004


Ryan Pipkin <ryan.pipkin@inet.com> writes:

> When I build 3.3.1 or 3.3.3 I seem to be missing standard libraries
> (-lstdc++ and -lm) in g++.
> 
> I use g++ -v to determine the libraries being included.
> 
> 3.3.1 & 3.3.3
> -lgcc -lgcc_eh -lc -lgcc -lgcc_eh

Are you *sure* you got this  from g++ -v and not from gcc -v ?
    I am using gcc 3.3.3 on freebsd5.2-x86, and I get:
    [...] -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc [...]
    from g++ -v, but:
    [...] -lgcc -lgcc_eh -lc -lgcc -lgcc_eh [...]
    from gcc -v.

> 
> 3.2.1
> -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
[snip]

Could you post the *entire* output of 'g++ -v hello.cc' where
    'hello.cc' is a simple C++ hello world?



More information about the Gcc-help mailing list