• 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: Jerry Krinock <email@hidden>
  • Date: Tue, 02 May 2006 16:10:49 -0700
  • Thread-topic: Linker can't find symbol _environ in Framework

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())

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?

Jerry


 _______________________________________________
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

  • Follow-Ups:
    • Re: Linker can't find symbol _environ in Framework
      • From: Eric Albert <email@hidden>
References: 
 >Re: Linker can't find symbol _environ in Framework (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: gdb behaviour..
  • Next by Date: Re: Linker can't find symbol _environ in Framework
  • Previous by thread: Re: Linker can't find symbol _environ in Framework
  • Next by thread: Re: Linker can't find symbol _environ in Framework
  • Index(es):
    • Date
    • Thread