* Question about mixing GCC 3.1.1 and GCC 2.95.3
@ 2002-08-29 18:06 Samir Rajguru
2002-08-30 3:22 ` Claudio Bley
0 siblings, 1 reply; 2+ messages in thread
From: Samir Rajguru @ 2002-08-29 18:06 UTC (permalink / raw)
To: gcc-help
I was just wondering if it is possible to generate C/C++ code (e.g. dynamic
libraries with GCC 3.1.1) and then run them from executables generated
with GCC 2.95.3. I seem to be getting core dumps when trying this.
Just wondering why the two compilers are not interchangeable. Is this
true for only C++ generated code or both C and C++ generated code.
Regards,
Samir
--
Samir Rajguru
srajguru@onebox.com - email
(510) 401-3282 x1034 - voicemail/fax
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about mixing GCC 3.1.1 and GCC 2.95.3
2002-08-29 18:06 Question about mixing GCC 3.1.1 and GCC 2.95.3 Samir Rajguru
@ 2002-08-30 3:22 ` Claudio Bley
0 siblings, 0 replies; 2+ messages in thread
From: Claudio Bley @ 2002-08-30 3:22 UTC (permalink / raw)
To: Samir Rajguru; +Cc: gcc-help
>>>>> "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 / \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-30 10:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-29 18:06 Question about mixing GCC 3.1.1 and GCC 2.95.3 Samir Rajguru
2002-08-30 3:22 ` Claudio Bley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).