Re: Linker can't find symbol _environ in Framework
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