Re: Linking w/SDKs from the command line
Re: Linking w/SDKs from the command line
- Subject: Re: Linking w/SDKs from the command line
- From: Eric Albert <email@hidden>
- Date: Thu, 13 Nov 2003 22:39:55 -0800
At 3:38 PM +0000 11/12/03, Alastair Houghton wrote:
On 12 Nov 2003, at 03:45, Nick Zitzmann wrote:
First, I forgot I also set these variables before building:
setenv MACOSX_DEPLOYMENT_TARGET "10.2"
setenv NEXT_ROOT "/Developer/SDKs/MacOSX10.2.7.sdk"
Also, the linker error I'm specifically getting is...
ld: Undefined symbols:
_poll
_stpcpy
Well poll() is a System V Streams function that doesn't exist on Mac OS
X (because OS X, being BSD-based, doesn't have Streams).
Actually, poll() (or at least an emulation of it) is new in Panther.
It doesn't exist in the 10.2 SDK, but there are a variety of free
implementations online. I'm a fan of the one at
<http://www.sealiesoftware.com/fakepoll.h> myself.
(For what it's worth, I think poll(2) exists in FreeBSD, NetBSD, and
OpenBSD, so while the origin of it may be non-BSD, it exists in most
BSD-based operating systems.)
-Eric
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.