• 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: Undefined Linking Symbols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undefined Linking Symbols


  • Subject: Re: Undefined Linking Symbols
  • From: John Haager <email@hidden>
  • Date: Sun, 23 Jun 2002 11:58:57 -0700

On Sunday, June 23, 2002, at 03:34 AM, email@hidden wrote:

And this is the declaration I'm using to make the struct global:
extern asqrs sqr[10];

By declaring sqr as extern, you are telling the compiler and linker that this variable is declared in some other file. In order for it to be found, it must then exist in some other file. This would be done by declaring
asqrs sqr[10]
in one of your .m files, thus causing the compiler to actually create the object, and allowing the linker to find it.

-> John Haager <-
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Undefined Linking Symbols (From: email@hidden)

  • Prev by Date: (no subject)
  • Next by Date: Re: Copy fileName containing ":"
  • Previous by thread: Undefined Linking Symbols
  • Next by thread: NSOutlineView recursive calling crashing app
  • Index(es):
    • Date
    • Thread