For some reasons I need to link an executable (in Linux) which has object files compiled by different C++ compilers and versions. I use g++ and clang (9, 10 and some older ones). May occur any compatibility issues in this scenario? Thanks
Asked
Active
Viewed 25 times
0
-
1Yes, you will certainly occur compatibility issues. The chances of getting a bug-free result from this excersize (assuming that the C++ source is bug free itself) are not very promising. – Sam Varshavchik Oct 22 '20 at 11:11
-
I see. Then I won't play with this kind of game. Thanks. – RobertSzili Oct 22 '20 at 11:13
-
Anyway, the question isn't about gcc versions' compatibility, but rather in gcc-clang ang clang-clang relations. – RobertSzili Oct 22 '20 at 11:15
-
Same thing. Your guarantee of a stable result is about 0% for anything more complicated than "Hello world!". – Sam Varshavchik Oct 22 '20 at 11:30
-
So a GCC question answers a clang specific one? Nice. – RobertSzili Nov 05 '20 at 16:26