0

I've been getting this annoying problem. I want to compile a .so under Ubuntu using the Anjuta IDE. It compiles fine and all, but when I load it, that's when the error comes up:

/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found

I've tried everything in GLIBCXX_3.4.15 not found. But nothing seemed to work.

user1667191
  • 101
  • 1
  • 3
  • If you use a ppa with a newer version of gcc or other packages, it might be a problem in older versions of ubuntu (older than 11.10) because of multiarch. Which ubuntu version do you use? Can you try a live cd of ubuntu 12.04 and see if the problem persists there too? Also, can you post the output of: `dpkg -l gcc* libst* | grep ^ii | awk {'print $2, $3'}` – Savvas Radevic Sep 17 '12 at 05:45
  • Thanks for the response. Here's the output: `gcc 4:4.6.3-1ubuntu5 gcc-4.6 4.6.3-1ubuntu5 gcc-4.6-base 4.6.3-1ubuntu5 gcc-4.7-base 4.7.0-7ubuntu3 libstartup-notification0 0.12-1ubuntu1 libstdc++6 4.7.0-7ubuntu3 libstdc++6-4.6-dev 4.6.3-1ubuntu5 libstlport4.6ldbl 4.6.2-7 ` Also, I'm using version: `ubuntu-12.04.1-desktop-i386`. Running it in a virtual machine on Windows 7 64 bit. – user1667191 Sep 18 '12 at 01:27
  • Also the output of: `apt-cache policy libstdc++6 libstdc++6-4.6-dev` -- I have ubuntu 12.04 and I don't see a 4.7 version of the libstdc++6 package. Do you use packages from launchpad PPA repositories? – Savvas Radevic Sep 18 '12 at 09:52
  • To be honest, I'm not sure anymore. I've tried so many things people posted that supposedly would fix this, including installing new packages. ( Lost track of what I've installed, and I'm new with Ubuntu, so yeah ).. Here's the output of that command: ( pasting in pastebin ): [link](http://pastebin.com/JjePatve) – user1667191 Sep 19 '12 at 00:05
  • Well, I would try using a live cd/usb. If it works there, it most definitely is a problem in your installation. – Savvas Radevic Sep 19 '12 at 06:26

1 Answers1

1

have you tried adding the /usr/lib/x86_64-linux-gnu to the LD_LIBRARY_PATH environment variable?

I did and worked. Let me know if this helps.

Joaquin
  • 41
  • 2