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: libstdc++.so: undefined reference to


lulu he <loloseed@gmail.com> writes:

> I got gcc42,gcc43,and gcc34,seperately in /usr/local/gcc42 ,
> /usr/local/gcc43 , /usr/local/gcc34 directory on my server.
>
> I use gcc43 to compile PARSEC benchmark,but i got the following error:
> /usr/local/libstdc++.so: undefined reference to '_Unwind_GetIPInfo@GCC_4.2.0'
> /usr/local/libstdc++.so: undefined reference to ...
> ...
>
> I have link /usr/local/lib64/libstdc++.so TO
> /usr/local/gcc43/libstdc++.so.6.0.10 ,
> and I don't know what's going wrong?

The error message refers to /usr/local/libstdc++.so, not
/usr/local/lib64/libstdc++.so.  It sounds like you are compiling with
gcc 4.3 and linking dynamically against a libstdc++.so built with gcc
4.2.  In some cases that will work, in others it won't.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]