Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 621283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:51:27+00:00 2026-05-13T18:51:27+00:00

After installing a new build machine, I found out it came with 6.0.10 of

  • 0

After installing a new build machine, I found out it came with 6.0.10 of the standard C++ library

-rw-r--r--  1 root root 1019216 2009-01-02 12:15 libstdc++.so.6.0.10

Many of our target machines, however, still use an older version of libstdc++, for example:

-rwxr-xr-x 1 root root  985888 Aug 19 21:14 libstdc++.so.6.0.8

Apparently the ABI changed in those last two 0.0.1’s, as trying to run a program results in

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

I tried explicitly installing an older version of gcc but that didn’t help.
Upgrading the target machines is out of my control, so not an option. What’s the best way to get my builds to work on machines with an older libstdc++?

I searched in apt-cache for older libstdc++ versions to install, but apparently no older versions of 6 are available?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:51:27+00:00Added an answer on May 13, 2026 at 6:51 pm

    You don’t need to link to a different library, you need to use an older version of the compiler.

    Have a look at the GNU ABI policy. The libstdc++ shared library is designed to be forward compatible. I.e. version 6.0.10 can be used if you need 6.0.8. In the policy you can read that from gcc-4.2.0 on, 6.0.9 is needed, so you need a gcc-4.1.x.

    In short, that’s why there’s only one libstdc++.so.6.0.x on your system, you only need the latest.

    As for setting up your build system to use only a specific version of the compiler: make sure the standard g++ can’t be used (rename the link, remove the package providing it, take it out of PATH), and start digging. Worked for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After installing gcc and mpich library in my linux I can compile my codes
After installing the package, I enter the python environment. I am new to python
After installing SQL Server 2005, I tried to create a new database (command: create
After installing the new server, I am facing an issue. I have lot of
After installing ASP.net MVC, when I attempt to load a existing or a new
I am getting the following error creating a new project after installing Windows Azure
After installing WebMatrix 2 Beta on my development machine, an MVC project compiled on
After installing VS2012 Premium on a dev machine a unit test failed, so the
2 questions. After installing the Oracle Java 7 on my new Debian local box,
After installing Dreamweaver CS6, the syntax highlighting of razor in visual studio 2010 removed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.