• 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
RE: Undefined symbol __error()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Undefined symbol __error() (From: "Justin C. Walker" <email@hidden>)

  • Prev by Date: Question regarding deployment/debugging of private framework
  • Next by Date: Success Story
  • Previous by thread: Re: Undefined symbol __error()
  • Next by thread: Re: Undefined symbol __error()
  • Index(es):
    • Date
    • Thread