This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]