public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* I have no ideas about an error involving CXXABI
@ 2013-11-30  1:56 Alec Teal
  2013-11-30  2:20 ` Jonathan Wakely
  0 siblings, 1 reply; 8+ messages in thread
From: Alec Teal @ 2013-11-30  1:56 UTC (permalink / raw)
  To: gcc-help

The error is:

./A.out: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 
`CXXABI_1.3.8' not found (required by ./A.out)

I can reproduce it on

gcc --version
gcc (GCC) 4.9.0 20131023 (experimental)

and one built yesterday, and today.

But I gcc 4.7.3 is fine.

Here's how you can:
-----------------------------------------------------
class B {
public:
     B() {}
     ~B() {}
};

template<class T>
class A {
public:
     A(int i,int j) {
         data = new T[i*j];
     }
     ~A() { delete[] data; }
protected:
     T* data;
};

int main(int,char**) {
     A<int>     a(5,5);

     A<B>    b(5,5);

     return 0;
}
----------------------------------------------

It is okay with A<B> but hates A<int> (I discovered it with doubles)

Other data:

ldconfig -p | grep libstdc
     libstdc++.so.6 (libc6,x86-64) => 
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
     libstdc++.so.6 (libc6) => /usr/lib/i386-linux-gnu/libstdc++.so.6
     libstdc++.so.5 (libc6) => /usr/lib/i386-linux-gnu/libstdc++.so.5

I honestly don't know what's wrong.


Alec


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-12-04 13:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-30  1:56 I have no ideas about an error involving CXXABI Alec Teal
2013-11-30  2:20 ` Jonathan Wakely
2013-11-30  4:19   ` Alec Teal
2013-11-30 17:51     ` Jonathan Wakely
2013-12-01  1:04       ` Alec Teal
2013-12-01 16:24         ` Jonathan Wakely
2013-12-03 16:45           ` Alec Teal
2013-12-04 13:21             ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).