Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help: g++ error on G5



Thanks for the notes. I think you nailed it.. I'm using only g++, but I saw in the program header files, there are mix of C headers and C++ headers. I guess for some C headers g++ goes into a different libgcc, or something like that.. I'll see if I can figure it out (the program is big and i'm not the author. it compiles fine on  Windows).. Thanks again!

Martin Costabel <email@hidden> wrote:
wob wrote:
> Hi there,
>
> I got the following error when i tried to compile a C++ program (OS X
> 10.3.9, PowerPC):
>
> ld: /usr/lib/gcc/darwin/3.3/libgcc.a(_fixunssfdi.o) illegal reference to
> symbol: ___cmpdi2 defined in indirectly referenced dynamic library
> /usr/local/lib/libgcc_s.1.dylib

Without seeing more details, the only thing one can see from this output
is that you seem to be mixing different compilers, which is always a
dangerous thing to do. Some of the objects that you are linking now have
been compiled using (at least parts of) a compiler that lives in
/usr/local, not the Apple gcc-3.3 that you are using now.

--
Martin


Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: help: g++ error on G5 (From: Martin Costabel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.