public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alec Teal <a.teal@warwick.ac.uk>
To: <gcc-help@gcc.gnu.org>
Subject: I have no ideas about an error involving CXXABI
Date: Sat, 30 Nov 2013 01:56:00 -0000	[thread overview]
Message-ID: <52993F21.2060700@warwick.ac.uk> (raw)

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


             reply	other threads:[~2013-11-30  1:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-30  1:56 Alec Teal [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52993F21.2060700@warwick.ac.uk \
    --to=a.teal@warwick.ac.uk \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).