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

Undefined Linking Symbols


  • Subject: Undefined Linking Symbols
  • From: email@hidden
  • Date: Sun, 23 Jun 2002 19:34:55 +0900

Hi,

I'm trying to declare a global variable that happens to be both a struct and an array to be used in my controller class, and another model class. The compiler has no problems with the syntax, but upon linking I'm told, "Undefined symbols: sqr".

This is the struct declaration:
typedef struct asqr {
int XorO;
int turnNum;
int odd;
NSString *mark;} asqrs;

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

This all worked fine when it was one file, but I thought it unwieldy, and attempted to split it into two classes. I must be missing something obvious, but can't see it. Can anyone help?
_______________________________________________
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.
  • Follow-Ups:
    • Re: Undefined Linking Symbols
      • From: John Haager <email@hidden>
  • Prev by Date: Java API to ScreenSaverDefaults?
  • Next by Date: Re: Using Darwin headers
  • Previous by thread: Java API to ScreenSaverDefaults?
  • Next by thread: Re: Undefined Linking Symbols
  • Index(es):
    • Date
    • Thread