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: Linking problem: failed with exit code 1



I just assumed that if these were stopping the build that they would come up as errors and not warnings.
But, I'm stupid and I see my problem now. I was ignorantly assuming that the "multiple definitions" statements were warnings because they came before the actual error "Command /usr/bin/g++-4.0 failed with exit code 1". I didn't realize these as errors.


Thanks for the help!

----- Original Message ----- From: "Mark Wagner" <email@hidden>
To: "Michael Ryan Bannon" <email@hidden>
Cc: <email@hidden>
Sent: Friday, May 05, 2006 4:05 PM
Subject: Re: Linking problem: failed with exit code 1



On 5/5/06, Michael Ryan Bannon <email@hidden> wrote:

Hello,

I've seen this topic on the list already, so I hope you don't mind me asking
again.
I'm getting the following error during linking:


Command /usr/bin/g++-4.9 failed with exit code 1

That's the only error.  It doesn't say why the link failed...just that.
I'm using Xcode 2.2 on a Mac Intel.

collect2: ld returned 1 exit status

/usr/bin/ld: multiple definitions of symbol raiseAmount(ActionType)
/usr/bin/ld: multiple definitions of symbol __Z11raiseAmount10ActionType.eh
/usr/bin/ld: multiple definitions of symbol isRaise(ActionType)
/usr/bin/ld: multiple definitions of symbol __Z7isRaise10ActionType.eh

Looks to me like these four errors are your problem: you've got four functions defined in more than one place (or possibly two functions defined with both C linkage and C++ linkage. I'm not certain on the name mangling here).

--
Mark Wagner


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Linking problem: failed with exit code 1 (From: Michael Ryan Bannon <email@hidden>)
 >Re: Linking problem: failed with exit code 1 (From: "Mark Wagner" <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.