• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why am I always getting the linker error: 'duplicate symbol'...?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Why am I always getting the linker error: 'duplicate symbol'...? (From: "Frederick C. Lee" <email@hidden>)
 >Re: Why am I always getting the linker error: 'duplicate symbol'...? (From: Kyle Sluder <email@hidden>)
 >Re: Why am I always getting the linker error: 'duplicate symbol'...? (From: Jens Alfke <email@hidden>)
 >Re: Why am I always getting the linker error: 'duplicate symbol'...? (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Re: XCode Developer issue. Debugger errors since upgrading to Snow Leopard: unable to read unknown load command 0x80000022
  • Next by Date: CoreData SQL tracing...
  • Previous by thread: Re: Why am I always getting the linker error: 'duplicate symbol'...?
  • Next by thread: Re: Why am I always getting the linker error: 'duplicate symbol'...?
  • Index(es):
    • Date
    • Thread