Cross-development references to system dylibs
Cross-development references to system dylibs
- Subject: Cross-development references to system dylibs
- From: Jeffrey Johnson <email@hidden>
- Date: Tue, 15 Nov 2005 10:48:57 -0500
I've just loaded Xcode 2.2 on 10.4.2, and I have a project that was started under 2.1 cross developing using the 10.4u SDK. I need to link against libz (compress, uncompress). Zero Link is off.
In 2.1 I added a reference to /Developer/SDK/MacOSX10.4u.sdk/usr/lib/libz.dylib , and it automatically appeared as a reference to /Developer/SDK/MacOSX10.4u.sdk/usr/lib/libz.1.2.2.dylib. Build->Run, all is good.
Loaded up Xcode 2.2, chucked my build folder, and rebuilt. Now _compress and _uncompress are undefined. Looks like libz has gone to 1.2.3 in 10.4u.sdk- OK, remove the old reference and add a new one to MacOSX10.4u.sdk/usr/lib/libz.dylib (reference in the project doesn't auto-morph to 1.2.3). Symbols are still undefined.
Delete and add a reference to MacOSX10.4u.sdk/usr/lib/libz.1.2.3.dylib this time. STILL undefined. Delete and add a reference to /usr/lib/libz.dylib (the lib on my active OS). Symbols are now found.
I thought the concept of the cross-development SDK was to use its references instead of using ones tied to the OS version on the development box, and the "Cross Development Programming Guide" seems to confirm this, but these refs don't resolve at link time. (BTW, a shell script that I use to do some post-processing confirms that SDKROOT is set to /Developer/SDK/MacOSX10.4u.sdk .)
Which references should I be using, and will my app (built against my 10.4.2 box) have problems running on a different variant of 10.4.x?
Thanks
Jeffrey Johnson
Macintosh Development
Wavefunction, Inc.
_______________________________________________
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