Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > GCC 3.2 released - Argh, new C++ ABI

GCC 3.2 released - Argh, new C++ ABI
Thread Tools
mudmonkey
Dedicated MacNNer
Join Date: Jan 2000
Location: Other side of your screen
Status: Offline
Reply With Quote
Aug 16, 2002, 12:56 PM
 
From:

GCC 3.2 Changes

The C++ ABI from 3.1 to 3.2 has changed AGAIN! So, now for Jaguar, C++ programs have to be recompiled with 3.1, then, once we move again to 3.2, another recompile.

Anyone know if they (GNU) will finally settle on an ABI for C++?

Are the implications of all of these ABI changes not as serious as the appear to be to me? I am under the belief that our currently executing C++ code (compiled under GCC 2.95.2) won't properly execute under Jaguar... (I don't have 10.2 yet to try it)

Thanks for any info!
Meh
     
tobli
Forum Regular
Join Date: Oct 2001
Location: Sweden
Status: Offline
Reply With Quote
Aug 16, 2002, 06:10 PM
 
I'm certainly no expert, but I don't think it's that bad. First of all, apps compiled with gcc 2.95 should, and do, run on 10.2. The difference between different ABIs become important, in my understanding, when linking. This is the reason that C++ object files generally aren't compatible between compilers from different vendors. If your C++ application is linking with external code, you have to make sure that the libraries are compiled using the same compiler (or rather using the same ABI). One of the positive things about gcc 3.2 seems to be that vendors have finally agreed on a common and stable standard ABI, so the probability for future ABI changes is much smaller after this.
     
mudmonkey  (op)
Dedicated MacNNer
Join Date: Jan 2000
Location: Other side of your screen
Status: Offline
Reply With Quote
Aug 16, 2002, 07:26 PM
 
Originally posted by tobli:
I'm certainly no expert, but I don't think it's that bad. First of all, apps compiled with gcc 2.95 should, and do, run on 10.2. The difference between different ABIs become important, in my understanding, when linking. This is the reason that C++ object files generally aren't compatible between compilers from different vendors. If your C++ application is linking with external code, you have to make sure that the libraries are compiled using the same compiler (or rather using the same ABI). One of the positive things about gcc 3.2 seems to be that vendors have finally agreed on a common and stable standard ABI, so the probability for future ABI changes is much smaller after this.
Thank you for the information. That is my problem, however, is that I am afraid that programs that are dynamically linked to system libraries (libstdc++, etc.) will have a problem...

I think that this is what many in the fink team are running into; although, I'm not sure.

I hope that Apple can move to GCC 3.2, as, I have heard of numerous serious problems with 3.1 (not just on OS X).
Meh
     
gorgonzola
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Reply With Quote
Aug 17, 2002, 12:17 AM
 
Read this:

http://lists.apple.com/mhonarc/darwi.../msg15337.html

Login/pass is archives/archives. Stan Shebs maintains GCC for Apple, in case you didn't know.
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
     
mudmonkey  (op)
Dedicated MacNNer
Join Date: Jan 2000
Location: Other side of your screen
Status: Offline
Reply With Quote
Aug 17, 2002, 05:40 PM
 
Originally posted by gorgonzola:
Read this:
Very interesting. Thank you for the reference! That answers most of the concerns.

Thanks.
Meh
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:03 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,