Re: Release compile failure
Re: Release compile failure
- Subject: Re: Release compile failure
- From: Tommy Nordgren <email@hidden>
- Date: Sat, 12 Jan 2008 01:59:50 +0100
Are you possibly including the same source file more than once? (For
example via a project specific framwork?)
On 12 jan 2008, at 01.13, Paul wrote:
I've got a bit of a problem with Xcode, and I would appreciate some
help figuring it out.
I am using Xcode 2.4.1 on my TiBook running 10.4.11
I have a project the compiles and runs perfectly in the "Debug"
configuration, but when I switch to "Release" configuration, I get a
slug (highly technical term, meaning "a lot" ;-) ) of "Multiple
definitions of symbol" errors.
/usr/bin/ld: multiple definitions of symbol
_ACMTriggerEnabledVisibleKey
/usr/bin/ld: multiple definitions of symbol _shortRange
are two of the errors, and they are all variable names with an
underbar at the beginning (ie - I have a variable named shortRange,
but not _shortRange). In searching my files, none of them are
defined more than once. The examples listed above are an NSString
and an NSRange (respectively). They are also defined in two
different Class files.
These errors are preceded with the following related errors:
/usr/bin/ld: multiple definitions of symbol
_ACMTriggerEnabledVisibleKey
/Users/chiron/Documents/Development/A C M/build/A C M.build/Release/
A C M.build/Objects-normal/ppc/InterfaceController.o private
external definition of _ACMTriggerEnabledVisibleKey in section
(__DATA,__data)
/Users/chiron/Documents/Development/A C Master/build/A C
Master.build/Release/A C Master.build/Objects-normal/ppc/
PreferenceController.o private external definition of
_ACMTriggerEnabledVisibleKey in section (__DATA,__data)
/Users/chiron/Documents/Development/A C M/build/A C M.build/Release/
A C M.build/Objects-normal/ppc/DocumentSettings.o private external
definition of _ACMTriggerEnabledVisibleKey in section (__DATA,__data)
/Users/chiron/Documents/Development/A C M/build/A C M.build/Release/
A C M.build/Objects-normal/ppc/ShowModeInterface.o private external
definition of _ACMTriggerEnabledVisibleKey in section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _shortRange
/Users/chiron/Documents/Development/A C M/build/ACM.build/Release/A
C M.build/Objects-normal/ppc/InterfaceController.o private external
definition of _shortRange in section (__DATA,__data)
/Users/chiron/Documents/Development/A C M/build/A C M.build/Release/
A C M.build/Objects-normal/ppc/PreferenceController.o private
external definition of _shortRange in section (__DATA,__data)
/Users/chiron/Documents/Development/A C M/build/A C M.build/Release/
A C M.build/Objects-normal/ppc/DocumentSettings.o private external
definition of _shortRange in section (__DATA,__data)
/Users/chiron/Documents/Development/A C M/build/A C M.build/Release/
A C M.build/Objects-normal/ppc/ShowModeInterface.o private external
definition of _shortRange in section (__DATA,__data)
Also, if it helps, ACMTriggerEnabledVisibleKey is used in my
PrefencesController class and is defined:
NSString *ACMTriggerEnabledVisibleKey =
@"triggerEnabledIsVisibleInTable"
and shortRange is used in the InterfaceController Class (my Main)
and is used to extract a portion of an NSString. Defined:
NSRange shortRange = { 2, 8 };
I am sure that I am over-looking something obvious, but for the life
of me, I cannot figure it out
Thanks, in advance, for any help!!
***** Paul *****
email@hidden
email@hidden
ICQ #11034669
-----
"They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety."
Benjamin Franklin, Historical Review of Pennsylvania, 1759
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden