G ++ version compatibility

This is a specific gcc related question. I have a library compiled with g ++ 4.1.2 that I want to provide to the user. A user can use our API in his code and link our library in order to create the final executable.

The question I have is related to g ++ version compatibility. Some of our users use g ++ 4.4.3, others 4.3.3 and others 4.2.1. Is a library compiled with 4.1.2 compatible with all of these versions of g ++? I guess they should be, because they are compatible with ABI. But some of our customers do not agree. I really don't want to send four different versions of the same library. If they are incompatible, is there a specific reason or is there a way to avoid incompatibility?

+3
source share
2 answers

, ABI (Application Binary Interface). GCC ABI, , v3.3 v3.4.

. , , .

, : ; , .

+4

, . GCC, GCC. GCC , , GCC, .

+2

Source: https://habr.com/ru/post/1764903/


All Articles