Re: Undefined Linking Symbols
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.