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

  • Follow-Ups:
    • Re: Linking w/SDKs from the command line
      • From: Alastair Houghton <email@hidden>
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>)

  • Prev by Date: (no subject)
  • Next by Date: Re: xcode-users digest, Vol 1 #70 - 15 msgs
  • Previous by thread: Re: Linking w/SDKs from the command line
  • Next by thread: Re: Linking w/SDKs from the command line
  • Index(es):
    • Date
    • Thread