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: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 22 Sep 2009 12:40:05 +0200
You can use an enum to define integer constants
enum {
x = 123,
};
Le 21 sept. 2009 à 23:15, Frederick C. Lee a écrit :
I suspected such.Thanks to all.
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.
Regards,
Ric.
On Mon, Sep 21, 2009 at 2:00 PM, Jens Alfke <email@hidden>
wrote:
On Sep 21, 2009, at 1:24 PM, Kyle Sluder wrote:
You might want to review your favorite C documentation. I always
preferred K&R.
Specifically, look up the keyword "extern" in the index.
—Jens
_______________________________________________
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
-- Jean-Daniel
_______________________________________________
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