Re: Release compile failure
Re: Release compile failure
- Subject: Re: Release compile failure
- From: Paul <email@hidden>
- Date: Fri, 11 Jan 2008 19:54:06 -0800
I always use #import and never #include (saves a lot of problems during compiles)
I have checked and all of my #imports are for .h files.
I have to wonder what it is that is different about the Release compilation configuration that would keep it from compiling.
***** Paul *****
email@hidden
email@hidden
On Friday, January 11, 2008, at 09:52PM, "Tommy Nordgren" <email@hidden> wrote:
>Another possibility: Look for #include and #import preprocessor statements.
>I remember that once I managed to type the name of an implementation
>file instead of a header file into and #include statement. This would
>cause the symptoms you describe.
>On 12 jan 2008, at 02.20, Paul wrote:
>
>> The only frameworks I am using are Apple's.
>>
>> On Jan 11, 2008, at 7:59 PM, Tommy Nordgren wrote:
>>
>>> 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
>>>
>>>
>>>
>>>
>>
>> ***** Paul *****
>> email@hidden
>> email@hidden
>> ICQ #11034669
>>
>> -----
>>
>> >>> Bozosity Of The Day <<<
>>
>> Daily proof that there is no shortage of bozosity when it comes to
>> expert pontifications. From garage.com:
>> ------------------------------------------------------------------
>>
>> "This crash is not going to have much effect on business."
>>
>> -- Arthur Reynolds, Oct. 24, 1929 (Chairman of Continental Illinois
>> Bank of Chicago)
>>
>> _______________________________________________
>>
>> 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
>
>----------------------------------
>Skinheads are so tired of immigration, that they are going to move to
>a country that don't accept immigrants!
>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