g++ error on Solaris/Sparc undefined reference to std::cout
Jonathan Wakely
jwakely.gcc@gmail.com
Tue Apr 19 12:26:00 GMT 2011
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.
More information about the Gcc-help
mailing list