I have a situation where we need to provide an executable application for CentOS 6.6 environment.
Unfortunately our application uses more recent C++ functionality not supported but the older compiler that comes with CentOS 6.6.
Compiling and running this application on Centos 7 works fine, however does not compile with the gcc 4.4.7 compiler on CentOS 6
Trying to execute the CentOS 7 built application on CentOS 6.6 results in a message:
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by libApp.so)
where libApp.so is the library built and used by our application and was built on the Centos 7 environment.
Is there a way to cross compile for backwards compatibility? Or can the necessary libraries be provided with our compiled application?
Any suggestions are welcomed.
Thanks in advance,
Mabry
Building application for CentOS 6
Re: Building application for CentOS 6
Install devtoolset-2 on your CentOS 6 box and build using the devtoolset-2 version of gcc/g++
-
- Posts: 2
- Joined: 2015/03/25 14:44:57
Re: Building application for CentOS 6
Thanks for the suggestion, I will give it a try!