Re: 3.3 g++ standard libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ryan Pipkin <ryan.pipkin@xxxxxxxx> 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?

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux