Building application for CentOS 6

Issues related to applications and software problems
Post Reply
mabrydozier
Posts: 2
Joined: 2015/03/25 14:44:57

Building application for CentOS 6

Post by mabrydozier » 2015/03/25 14:58:12

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

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: Building application for CentOS 6

Post by Whoever » 2015/03/25 15:07:02

Install devtoolset-2 on your CentOS 6 box and build using the devtoolset-2 version of gcc/g++

mabrydozier
Posts: 2
Joined: 2015/03/25 14:44:57

Re: Building application for CentOS 6

Post by mabrydozier » 2015/03/25 23:37:02

Thanks for the suggestion, I will give it a try!

Post Reply