• 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
Linker can't find symbol _environ in Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linker can't find symbol _environ in Framework


  • Subject: Linker can't find symbol _environ in Framework
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 02 May 2006 10:30:26 -0700
  • Thread-topic: Linker can't find symbol _environ in Framework

Hi,

I have created a Cocoa framework project using files factored out of a
working Cocoa application.  The files I have factored out includes Apple's
famous "MoreAuthSample" code, which includes Apple's famous MoreCFQ.c,
MoreUNIX.c and MoreSecurity.c.

MoreSecurity.c declares:

extern char **environ ;

which would seem to be the cause of this linker error:

Undefined symbols:
_environ

>From searching developer.apple.com I see that "environ" is apparently some
variable at the Mach-O level.

I have added the frameworks "Carbon.framework" and "Security.framework" to
this framework project.

How/can this be made to link?  I've fixed all the compiler errors.  This one
linker error is my one remaining show-stopper.

Thank you,

Jerry Krinock


 _______________________________________________
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

  • Prev by Date: Re: Is this a known GCC bug?
  • Next by Date: Re: Building for 10.3 target using X-Code 2.1
  • Previous by thread: Re: Link error (sprintf, vsprintf missing)
  • Next by thread: RE: Linker can't find symbol _environ in Framework
  • Index(es):
    • Date
    • Thread