I have application compiled on rather NEW ubunto distribution (kernel 3.2.0-53-virtual) using g++ 4.7.2. After compilation completes (and works on this machine), I'm taking the products to OLD Debian 4 distribution (kernel 2.6.34.10). I currently CANNOT change distribution. I'm trying to run the application and get:
1 2 3 4 5 6 7
Bin/MY_APP: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by Bin/MY_APP)
Bin/MY_APP: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by Bin/MY_APP)
Bin/MY_APP: /lib/tls/libc.so.6: version `GLIBC_2.15' not found (required by Bin/MY_APP)
Bin/MY_APP: /lib/tls/libc.so.6: version `GLIBC_2.11' not found (required by Bin/MY_APP)
Bin/MY_APP: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by Bin/MY_APP)
Bin/MY_APP: /lib/tls/libc.so.6: version `GLIBC_2.12' not found (required by Bin/MY_APP)
Bin/MY_APP: /lib/tls/libc.so.6: version `GLIBC_2.7' not found (required by Bin/MY_APP)
I tried to solve the issue, and took from the machine I compiled the application (NEW ubunto) libstdc++.so.6 & libc.so.6 and put them on /usr/lib/MY_APP_LIB/ , but when I run:
thanks, I recompiled on the NEW machine with -static-libstdc++ -static-libgcc but I still getting the same errors when running on my OLD machine:
1 2 3 4 5 6 7
Bin/MY_APP: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by Bin/MY_APP)
Bin/MY_APP: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by Bin/MY_APP)
Bin/MY_APP: /lib/tls/libc.so.6: version `GLIBC_2.15' not found (required by Bin/MY_APP)
Bin/MY_APP: /lib/tls/libc.so.6: version `GLIBC_2.11' not found (required by Bin/MY_APP)
Bin/MY_APP: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by Bin/MY_APP)
Bin/MY_APP: /lib/tls/libc.so.6: version `GLIBC_2.12' not found (required by Bin/MY_APP)
Bin/MY_APP: /lib/tls/libc.so.6: version `GLIBC_2.7' not found (required by Bin/MY_APP)