It's not impossible at all, clang, gcc and icc use a common C++ ABI
and should be link-compatible
Well my experience says that this does not work with gcc and solstudio.
You've picked the wrong person to complain about C++ too so let's
No I don't complain to you but I complained through your message :-)
ignore that ... you didn't say whether you looked at the libstdc++.so
libs in /opt/gcc-4.6.0 and whether any of them use ELF symbol
versioning, which might make them incompatible.
I have compiled Qt with gcc 4.5.3 and 4.6.0 and now I am trying again
with 4.6.0 that has been configured to use GNU ld and GNU as. As about
the versioning thing I am not sure what you mean, bur I hope the
following help:
$ elfdump -v /usr/lib/libstdc++.so.6.0.14
Version Needed Section: .SUNW_version
index file version
[2] libm.so.2 SUNW_1.2
[3] libgcc_s.so.1 GCC_3.0 [ INFO ]
[4] GCC_3.3 [ INFO ]
[5] GCC_4.2.0
$ elfdump -v /opt/gcc-4.6.0/lib/libstdc++.so.6.0.15
Version Definition Section: .SUNW_version
index version dependency
[1] libstdc++.so.6 [ BASE ]
[2] GLIBCXX_3.4
[3] GLIBCXX_3.4.1 GLIBCXX_3.4
[4] GLIBCXX_3.4.2 GLIBCXX_3.4.1
[5] GLIBCXX_3.4.3 GLIBCXX_3.4.2
[6] GLIBCXX_3.4.4 GLIBCXX_3.4.3
[7] GLIBCXX_3.4.5 GLIBCXX_3.4.4
[8] GLIBCXX_3.4.6 GLIBCXX_3.4.5
[9] GLIBCXX_3.4.7 GLIBCXX_3.4.6
[10] GLIBCXX_3.4.8 GLIBCXX_3.4.7
[11] GLIBCXX_3.4.9 GLIBCXX_3.4.8
[12] GLIBCXX_3.4.10 GLIBCXX_3.4.9
[13] GLIBCXX_3.4.11 GLIBCXX_3.4.10
[14] GLIBCXX_3.4.12 GLIBCXX_3.4.11
[15] GLIBCXX_3.4.13 GLIBCXX_3.4.12
[16] GLIBCXX_3.4.14 GLIBCXX_3.4.13
[17] GLIBCXX_3.4.15 GLIBCXX_3.4.14
[18] CXXABI_1.3
[19] CXXABI_1.3.1 CXXABI_1.3
[20] CXXABI_1.3.2 CXXABI_1.3.1
[21] CXXABI_1.3.3 CXXABI_1.3.2
[22] CXXABI_1.3.4 CXXABI_1.3.3
[23] CXXABI_1.3.5 CXXABI_1.3.4
Version Needed Section: .SUNW_version
index file version
[24] libm.so.2 SUNW_1.2
[25] libc.so.1 SUNW_1.22
[26] SUNW_1.18 [ INFO ]
[27] SUNW_1.1 [ INFO ]
[28] SUNW_0.9 [ INFO ]
[29] SUNW_0.7 [ INFO ]
[30] SUNWprivate_1.1
[31] SYSVABI_1.3 [ INFO ]
[32] libgcc_s.so.1 GCC_3.0 [ INFO ]
[33] GCC_3.3 [ INFO ]
[34] GCC_4.2.0
Regards,
Apostolos