• 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: Linking w/SDKs from the command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking w/SDKs from the command line


  • Subject: Re: Linking w/SDKs from the command line
  • From: Alastair Houghton <email@hidden>
  • Date: Fri, 14 Nov 2003 11:32:55 +0000

On 14 Nov 2003, at 06:39, Eric Albert wrote:

> 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.

In which case I'll file a bug because it doesn't have a man page.

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

Indeed.  It has been added to most of them, probably because many
people prefer it to select() (although it's nowhere near as good as
kevent/kqueue, which have also been added in Panther).  It wasn't there
in some of the older versions, though (FreeBSD < 3.0, OpenBSD < 2.0,
NetBSD < 1.3, I think).

Kind regards,

Alastair.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

References: 
 >Linking w/SDKs from the command line (From: Nick Zitzmann <email@hidden>)
 >Re: Linking w/SDKs from the command line (From: Nick Zitzmann <email@hidden>)
 >Re: Linking w/SDKs from the command line (From: Alastair Houghton <email@hidden>)
 >Re: Linking w/SDKs from the command line (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: "XcU7B104:" - Why I need to include libc++.a with Xcode 1.1 ?
  • Next by Date: Re: Problem with STL vector on Panther 10.3.1
  • Previous by thread: Re: Linking w/SDKs from the command line
  • Next by thread: [Solved] Re: Linking w/SDKs from the command line
  • Index(es):
    • Date
    • Thread