version `GLIBC_2.4' not found error
Posted on 2007-04-07
I'm compiling my C++ program under Ubuntu 6.10 using KDevelop. Unfortunately, it needs to run on an embedded device with no compiler running Debian. I get the error "version `GLIBC_2.4' not found" and "version `GCC_4.2.0' not found" when I try.
Now, I'm not stupid. Obviously the compiler on the new dev machine uses glibc 2.4. The problem is I can not put a compiler on the target machine. I can add libraries, but I can't replace them, especially not if they make the existing software stop working, so I think updating glibc on the target is right out too.
Unless there is a solution I'm not thinking of, I'm going to need to know how to do one of the following:
1. Make ubuntu compile using an older version of gcc and glibc
2. Make ubuntu compile self-contained programs that won't need the external glibc libraries
3. Add glibc 2.4 and gcc 4.2 libraries to the Debian system without overwriting any of the existing libraries.
Any help to do any of these (or a better solution altogether) would be appreciated. Thanks.