[bjam, binary compatibility] --layout=system and copying of binaries; different compiler versions

Following scenario: I have two machines M_a and M_b. M_a is running gcc4.1, M_b is running gcc4.2. Both have the same Boost Libs (1.35) compiled -with identical options- and installed (with their resp. gcc). I have used bjam option --layout=system. The Boost libs do therefore *not* have gcc41 or gcc42 in their names. Thus, the names are the same on both machines... which leads me to the following question: May I copy binaries (that link against Boost.Regex, Boost.FileSystem etc) from M_a to M_b? (or vice versa) The linker is happy as the libs required are there, but will it really work? Is this an *evil* thing to do? Best regards Christoph

Christoph Duelli wrote:
Following scenario:
I have two machines M_a and M_b. M_a is running gcc4.1, M_b is running gcc4.2. Both have the same Boost Libs (1.35) compiled -with identical options- and installed (with their resp. gcc). I have used bjam option --layout=system. The Boost libs do therefore *not* have gcc41 or gcc42 in their names.
Thus, the names are the same on both machines... which leads me to the following question:
May I copy binaries (that link against Boost.Regex, Boost.FileSystem etc) from M_a to M_b? (or vice versa) The linker is happy as the libs required are there, but will it really work? Is this an *evil* thing to do?
I doubt that Boost libraries themself change ABI depending on compiler version. I also don't know about ABI changes between 4.1 and 4.2. So, things should work. - Volodya
participants (2)
-
Christoph Duelli
-
Vladimir Prus