Does using -std = C ++ 11 use binary compatibility?

I really stared at this question - it seems obvious, but I did not find it: is it a module compiled with binary code -std = C ++ 11 (g ++), compatible with modules that are not compiled with the option? (That is, can I link them together safely?) Both compilations will use the same version of g ++.

To be more precise, using gcc 4.9.0, can I only use "-std = C ++ 11" in specific compilation units, and then let the rest compile without an option.

+8
c ++ c ++ 11 g ++
source share
1 answer

Google does not require a certain degree to find the gcc C ++ 11 ABI Compatibility page.

Short description: these are not linguistic reasons why the ABI is violated, but there are a number of authorized changes that make the C ++ standard library sent with gcc change.

+9
source share

All Articles