This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about mixing GCC 3.1.1 and GCC 2.95.3


>>>>> "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 / \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]