dimanche 28 août 2016

Is it possible to use different libstdc++ libraries in one program?

I have an old application framework that must be compiled with gcc 4.4.4 and an old libstdc++, which don't support C++14.

I want to use C++14 to write my new functions, and compiled them into a static liarary myslib.a, myslib.a exposes its functions in pure C interfaces for ABI compatibility.

My issue is: The framework uses an old libstdc++.so, which is not compatible with myslib.a.

Is it possible to enforce myslib.a to statically link the latest libstdc++.a and ignore the older libstdc++.so?

Aucun commentaire:

Enregistrer un commentaire