This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Question about mixing GCC 3.1.1 and GCC 2.95.3
- From: "Claudio Bley" <bley at cs dot uni-magdeburg dot de>
- To: "Samir Rajguru" <srajguru at onebox dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 30 Aug 2002 12:22:17 +0200
- Subject: Re: Question about mixing GCC 3.1.1 and GCC 2.95.3
- References: <20020830010646.BYCE11479.mta09.onebox.com@onebox.com>
>>>>> "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 / \