Re: linking error?
Re: linking error?
- Subject: Re: linking error?
- From: Tommy Nordgren <email@hidden>
- Date: Sun, 3 Aug 2008 00:17:29 +0200
On 3 aug 2008, at 00.04, Michael wrote:
Hi all,
I am getting a "linking" error and not too sure how to deal with this.
Set up.
Standard Tool.
Two files.
Main.c Defines: static char option = 0;
Remove static.
Variables declared static are only visible in the file or function
defining them.
String_tools.c
int foo() { extern int option; ......}
The error is as follows.
linking/Users....../
"_option" referenced from
_option$non_lazy_ptr in ... .o
symbol(s) not found.
collect2: Id returned.
Now, I assume I know what it means...well I think I do...but I am
not sure what is causing this or how to correct it.
Thanks in advance.
Xcode 3.1
Mac Pro
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from
outer space.
On congratulations for a fantastic parody, the producer replies :
"What parody?"
Tommy Nordgren
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden