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: Alastair Houghton <email@hidden>
- Date: Wed, 12 Nov 2003 15:38:36 +0000
On 12 Nov 2003, at 03:45, Nick Zitzmann wrote:
> On Nov 11, 2003, at 7:08 PM, Nick Zitzmann wrote:
>
>> I've set the CFLAGS and LDFLAGS environments like this:
>> setenv CFLAGS "-I/Developer/SDKs/MacOSX10.2.7.sdk/usr/include -O2
>> -mdynamic-no-pic -nostdinc"
>> setenv LDFLAGS "-L/Developer/SDKs/MacOSX10.2.7.sdk/usr/lib"
>
> Some more information I forgot to include...
>
> 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). stpcpy() is a
Lattice C library function that turned-up in the GNU C Library
(although they don't seem to know its origin).
I imagine you're trying to compile a program that was written for Linux
and uses these two functions. It doesn't sound like an
Xcode/build-system problem.
If it uses autoconf, check the config.h (or whatever name the package
in question gives it) to see if it has options to disable its use of
poll() and stpcpy().
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.