Re: Why am I always getting the linker error: 'duplicate symbol'...?
Re: Why am I always getting the linker error: 'duplicate symbol'...?
- Subject: Re: Why am I always getting the linker error: 'duplicate symbol'...?
- From: "Frederick C. Lee" <email@hidden>
- Date: Mon, 21 Sep 2009 14:55:48 -0700
I've been reading C & C++ conflicts in from a URL link to
...examples_short.pdf.It appears you're right.
The hassles of using 'const' & 'static' versus #define <> just isn't worth
pursuing.
I'll stick to the #define stmt and keep it simple.
Ric.
On Mon, Sep 21, 2009 at 2:40 PM, Greg Guerin <email@hidden> wrote:
> Frederick C. Lee wrote:
>
> I'm assuming 'const <datatype>' is better then the compiler directive
>> '#define', due to the use of the compiler
>> for more-efficient code. Hence the attempt.
>>
>
>
> Is your code currently bogged down loading #defined literal values? If
> not, then why pursue efficiency, as opposed to not fixing it if it ain't
> broken?
>
> -- GG
>
> _______________________________________________
>
> 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
>
_______________________________________________
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