Re: linking error?
Re: linking error?
- Subject: Re: linking error?
- From: Stephane Sudre <email@hidden>
- Date: Sun, 3 Aug 2008 00:25:06 +0200
On Aug 3, 2008, at 12:04 AM, 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;
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.
You're referencing a static char from another file as an extern int
in a function.
You started programming in C 2 minutes ago?
_______________________________________________
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