RE: Undefined symbol __error()
RE: Undefined symbol __error()
- Subject: RE: Undefined symbol __error()
- From: "David Litwin" <email@hidden>
- Date: Mon, 16 Jan 2006 17:57:49 -0800
It turns out some of the code I integrated in had a function with a local
variable named "errno", which was really causing confusion given the macro
definition. So in the middle of a function it was declaring:
int *(__error());
which was causing the undefined symbol.
Dave
-----Original Message-----
Justin Writes:
On Jan 16, 2006, at 15:36 , David Litwin wrote:
> When I create two very simple apps (Carbon app and Command Line
> Utility, I tried both) and have them check errno, and they link fine.
>
> I can't seem to make a project that *can't* find __error, even
> though their main.o files show it as "U ___error()" with nm.
There is no need to add the system framework to your project; Xcode
takes care of that.
Are you using 'errno' in an unusual way in your code (check your .o's
to see which ones have __error() undefined)? Since it is a macro
expanding to '__error()', if you use it as other than an "rval", you
might have problems.
Regards,
Justin
_______________________________________________
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