vendredi 22 mars 2019

Can i safely mix libraries compiled with -std=c++11 and -std=c++14?

From the early days of the transition between C++98 and C++11, I remember that there was some ABI-related trouble when linking together C++98 libraries and C++11 libraries. (See for example Mixing different C++ standards with GCC and the answers to that question.)

I have a special situation where part of my code needs to be compiled with a tool that only supports C++11, and another part uses C++14 features and can be compiled with a standard g++ that supports them. I can put each part of the code into its own library and link them. But I'm wondering: In general, are there any differences between C++11 and C++14 that would lead to (eg. ABI-related) problems here?

Aucun commentaire:

Enregistrer un commentaire