Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > /usr/bin/ld: ../../dist/lib/libjsdombase_s.a(BlockGrouper.o)(.text+0x98): unresolvable relocation against symbol `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostre

Reply
Thread Tools

/usr/bin/ld: ../../dist/lib/libjsdombase_s.a(BlockGrouper.o)(.text+0x98): unresolvable relocation against symbol `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostre

 
 
silverburgh.meryl@gmail.com
Guest
Posts: n/a
 
      03-08-2006
I have this linker error, and I would need some help in resolving it:

I have put "#include <iostream>" in my .cpp. I am not sure why I can't
link. It compiles fine.

/usr/bin/ld:
.../../dist/lib/libjsdombase_s.a(BlockGrouper.o)(.text+0x9:
unresolvable relocation against symbol `std::basic_ostream<char,
std::char_traits<char> >& std::endl<char, std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&)@@GLIBCXX_3.4'



Thank for your any idea.

 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      03-08-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> I have this linker error, and I would need some help in resolving it:
>
> I have put "#include <iostream>" in my .cpp. I am not sure why I can't
> link. It compiles fine.
>
> /usr/bin/ld:
> ../../dist/lib/libjsdombase_s.a(BlockGrouper.o)(.text+0x9:
> unresolvable relocation against symbol `std::basic_ostream<char,
> std::char_traits<char> >& std::endl<char, std::char_traits<char>
>
>>(std::basic_ostream<char, std::char_traits<char> >&)@@GLIBCXX_3.4'

>
>
>
> Thank for your any idea.


Here is an idea: linking (and especially such thing like "[un]resolvable
relocation") is not really part of C++ either since it's platform-
specific, so consider asking in the newsgroup for your platform. Also,
try reading the documentation provided with your linker about this error
message. If you are using GCC, try asking in their online forums on in
'gnu.gcc.help'.

V
--
Please remove capital As from my address when replying by mail
 
Reply With Quote
 
 
 
 
Marcus Kwok
Guest
Posts: n/a
 
      03-08-2006
(E-Mail Removed) <(E-Mail Removed)> wrote:
> I have this linker error, and I would need some help in resolving it:
>
> I have put "#include <iostream>" in my .cpp. I am not sure why I can't
> link. It compiles fine.
>
> /usr/bin/ld:
> ../../dist/lib/libjsdombase_s.a(BlockGrouper.o)(.text+0x9:
> unresolvable relocation against symbol `std::basic_ostream<char,
> std::char_traits<char> >& std::endl<char, std::char_traits<char>
>>(std::basic_ostream<char, std::char_traits<char> >&)@@GLIBCXX_3.4'

>
>
> Thank for your any idea.


std::endl is found in <ostream>, though several implementations will
implicitly #include <ostream> in <iostream>. Try explicitly
#include'ing <ostream>.

--
Marcus Kwok
 
Reply With Quote
 
Larry I Smith
Guest
Posts: n/a
 
      03-09-2006
Marcus Kwok wrote:
> (E-Mail Removed) <(E-Mail Removed)> wrote:
>> I have this linker error, and I would need some help in resolving it:
>>
>> I have put "#include <iostream>" in my .cpp. I am not sure why I can't
>> link. It compiles fine.
>>
>> /usr/bin/ld:
>> ../../dist/lib/libjsdombase_s.a(BlockGrouper.o)(.text+0x9:
>> unresolvable relocation against symbol `std::basic_ostream<char,
>> std::char_traits<char> >& std::endl<char, std::char_traits<char>
>>> (std::basic_ostream<char, std::char_traits<char> >&)@@GLIBCXX_3.4'

>>
>> Thank for your any idea.

>
> std::endl is found in <ostream>, though several implementations will
> implicitly #include <ostream> in <iostream>. Try explicitly
> #include'ing <ostream>.
>


and do not link with 'ld' directly; use 'g++' to do the link.
g++ adds additional data (like the C++ libs, and C++ specific
link switches) then invokes 'ld' for you.

Larry
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
relocation R_X86_64_32 against `a local symbol' can not be used whenmaking a shared object; recompile with -fPIC tkevans Python 0 02-11-2009 12:56 AM
M$ against Blu-ray, M$ for Blu-ray, M$ against Blu-ray, M$ forBlu-ray, ...... Blig Merk DVD Video 66 04-27-2008 04:46 AM
fatal: relocation error: symbol dirty? mkirsch1@rochester.rr.com Perl Misc 2 04-19-2006 08:44 PM
Embeded Perl, Dynaloader, relocation error: undefined symbol: Perl_Tstack_sp_ptr kyle.burton@gmail.com Perl Misc 0 06-24-2005 06:35 PM
relocation error: nimage_c.so: undefined symbol: str2cstr ara howard Ruby 1 10-28-2003 08:57 AM



Advertisments