
Well. I'm using Kdevelop to manage all the project questions regarding the choice of compilers and libraries to link. And i'm using the Common C++ library thats were the linking problem occurs. But the library is instaled and when the configure script is looking for it, find it in the specified location. For the stl template the code is in attachment. This code is inserted in a bigger project. I've already tried to install GCC 3.4.5 but the problem persists. Thanks for any help. Em Thursday 22 December 2005 12:12, o Jerry Feldman escreveu:
On Thu, 22 Dec 2005 10:47:55 +0100
Philipp Thomas <philipp.thomas@t-link.de> wrote:
On Wed, 21 Dec 2005 16:08:44 +0000, Jorge Almeida wrote:
/usr/local/lib/libccext2.so: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
Looks like you link with gcc and not g++.
I didn't have time to look at this much yesterday, but I think Philipp is correct. When building c++ or mixed C and C++ objects, you need to link with g++. This is because the GCC driver will not automatically link with the C++ libraries. Using g++, the C++ libraries will be automatically added.
-- Jorge Almeida j-almeida@criticalsoftware.com DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise disseminate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard copy version if verification is required. Critical Software.