Question about mixing GCC 3.1.1 and GCC 2.95.3
Claudio Bley
bley@cs.uni-magdeburg.de
Fri Aug 30 03:22:00 GMT 2002
>>>>> "Samir" == Samir Rajguru <srajguru@onebox.com> writes:
Samir> I was just wondering if it is possible to generate C/C++
Samir> code (e.g. dynamic libraries with GCC 3.1.1) and then run
Samir> them from executables generated with GCC 2.95.3. I seem to
Samir> be getting core dumps when trying this.
Samir> Just wondering why the two compilers are not
Samir> interchangeable. Is this true for only C++ generated code
Samir> or both C and C++ generated code.
You can't expect that this works with C++ libraries because the ABI
(Application Binary Interface has changed between 3.x and 2.x - you'd
need to recompile all you C++ libraries with one compiler in order to
work correctly).
C libraries compiled with either compiler should be fine.
--
Claudio Bley _
ASCII ribbon campaign ( )
ICQ# 83197241 - against HTML email X
http://www.cs.uni-magdeburg.de/~bley/ & vCards / \
More information about the Gcc-help
mailing list