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

Re: Linker can't find symbol _environ in Framework


  • Subject: Re: Linker can't find symbol _environ in Framework
  • From: Eric Albert <email@hidden>
  • Date: Tue, 2 May 2006 16:21:30 -0700

On May 2, 2006, at 4:10 PM, Jerry Krinock wrote:

on 06/05/02 14:36, Eric Albert at email@hidden wrote:

One way to sort of work around having to change this throughout your
code is to write
#define _environ (*_NSGetEnviron())

Sorry about that,

No problem. After eliminating the underscore from _environ, this works:


#define environ (*_NSGetEnviron())

Oops. Thanks for catching that.

Since MoreSecurity.c is the only file that uses this, I put this at the top
of MoreSecurity.c.


I then recompiled an application (not a framework) with this modififcation,
and it still works.


So, it seems like a good fix. Should I file a bug report on MoreSecurity.c
stating that this #define should be added to it?

I think that'd make sense.

-Eric

_______________________________________________
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: Linker can't find symbol _environ in Framework (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Linker can't find symbol _environ in Framework
  • Next by Date: [SOLVED] Re: Problems building a Universal Binary that works on Panther and Tiger
  • Previous by thread: Re: Linker can't find symbol _environ in Framework
  • Next by thread: curious linking behavior
  • Index(es):
    • Date
    • Thread