Re: g++ error on Solaris/Sparc undefined reference to std::cout

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

 



On 19 April 2011 12:08, Qi Zuo wrote:
>
>> Yes, if you install gmp, mpfr and mpc without using --disable-shared
>> then gcc depends on the shared libraries at runtime.
>>
>> See http://advogato.org/person/redi/diary/240.html (and the pages it
>> links to) for a simple way to build gcc so you don't need to set
>> LD_LIBRARY_PATH to use it.
>
> I once built GCC as this web page suggested. However, it seems to
> generate static libraries for gmp, mpfr and mpc rather than dynamic
> ones.

Yes, that's the whole point!

If you use dynamic libraries gcc needs to find them. If you don't want
to worry about that, use static libraries.


[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