473,748 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

/usr/bin/ld: ../../dist/lib/libjsdombase_s. a(BlockGrouper. o)(.text+0x98): unresolvable relocation against symbol `std::basic_ost ream<char, std::char_trait s<char> >& std::endl<char, std::char_trait s<char> >(std::basic_os tre

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+0x98):
unresolvable relocation against symbol `std::basic_ost ream<char,
std::char_trait s<char> >& std::endl<char, std::char_trait s<char>
(std::basic_os tream<char, std::char_trait s<char> >&)@@GLIBCXX_3. 4'

Thank for your any idea.

Mar 8 '06 #1
3 2110
si************* **@gmail.com 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+0x98):
unresolvable relocation against symbol `std::basic_ost ream<char,
std::char_trait s<char> >& std::endl<char, std::char_trait s<char>
(std::basic_o stream<char, std::char_trait s<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
Mar 8 '06 #2
si************* **@gmail.com <si************ ***@gmail.com> 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+0x98):
unresolvable relocation against symbol `std::basic_ost ream<char,
std::char_trait s<char> >& std::endl<char, std::char_trait s<char>
(std::basic_o stream<char, std::char_trait s<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
Mar 8 '06 #3
Marcus Kwok wrote:
si************* **@gmail.com <si************ ***@gmail.com> 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+0x98):
unresolvable relocation against symbol `std::basic_ost ream<char,
std::char_trait s<char> >& std::endl<char, std::char_trait s<char>
(std::basic_ost ream<char, std::char_trait s<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
Mar 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1238
by: Matt Raines | last post by:
Hi, Has anybody had success getting the oggvorbis module from PECL to work? I installed the latest versions of libogg and libvorbis from xiph.org (with the default configure options) and then did "pear install oggvorbis". phpinfo reports "Ogg Vorbis Wrapper: enabled", but whenever I try to open an ogg stream in PHP (with eg. fopen("ogg://file.ogg"); ) I get: /usr/bin/php: relocation error:
0
2187
by: w00t | last post by:
I am running Suse 9.0 and have been working with postgresql 7.3.3 When I run psql as psql -v or psql -V and even psql --help I get a relocation error psql: relocation error: /usr/lib/libreadline.so.4: undefined symbol: BC Is there anyway to fix this with out reinstalling postgresql. Thanks,
4
5220
by: Phil Campaigne | last post by:
Hi All, I just installed postgresql 7.3.4 as an upgrade to 7.3.2 and all went well untill I tried to log into a database that I successfully created. Here are the steps in question: bash-2.05b$ psql -h localhost -U postgres hardwoodthunder Welcome to psql 7.3.2, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands
5
1988
by: NTPT | last post by:
Regardi I recently compile Postgresql 7.4.3 with gcc 3.4.0 on RH 7.3 . Regression tests work well All passed, but Some binaries report a relocation error: :pg_dumpall undefined symbol get_progname . This error occures in most of the binaries. What is wrong ?
1
1920
by: Timothy Larson | last post by:
I've been scanning groups and Googling and can't figure out why I'm getting this error. I've read about using the -fPIC flag but I've been doing that. Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: R_PPC_REL24 relocation at 0x0e56191c for symbol `floor' out of range Lots of people post about this problem but I can't find solutions. The symbol out of range changes, but the...
0
1167
by: geoffblanduk_nospam | last post by:
I'm running Xalan-C++ 1.10 under Solaris. I'm using the binary iamge downloaded from the Xalan-C website. I've built my library using Forte 6.2. This builds into a library that is then called by Java applications. The library compiles and links OK but when I run I get the following run time error; java.lang.UnsatisfiedLinkError: /home/me/bin/libMyLibrary.so: ld.so.1:
0
1667
by: e r m | last post by:
I'm having the exact same problem as reported in Bug ID #'s 33476, 36305, 36020, and 34516. PHP 5.1.1 and 5.1.2 won't link against libmysqlclient.a. Environment details: Sun V440 Solaris 9 GCC 3.4.2 libtool 1.5.22 ld 2.14 Apache 2.2.0
1
2298
by: Suneeel | last post by:
Hi All, I'm having a problem with STL on Red Hat Linux 9, gcc 4.1.0. I have a Shared Object that is inserting an object into a MAP. When this shared object is used, I get a runtime error saying relocation error: /usr/lib/libMySharedObj.so: undefined symbol: _ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
3
3909
by: ajtaylor | last post by:
I have an set of unmanaged C++ libraries that I have been successfully using in a C++/CLI assembly which is in turn used by some other .NET code (ASP.NET/C#). The C++ makes a lot of use of Boost and STL. This is all working in VS 2005 I moved to VS 2008 and compiled up Boost 1_36 I have subsequently applied SP1 to VS2008. When I attempt to compile and link the C++/CLI I get the error
0
8826
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9534
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9316
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8239
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.