Re: Recompile for Intel
Re: Recompile for Intel
- Subject: Re: Recompile for Intel
- From: Chris Espinosa <email@hidden>
- Date: Wed, 22 Nov 2006 10:55:28 -0800
On Nov 22, 2006, at 10:21 AM, John Nairn wrote: I am trying to compiling existing code for Intel only on my new Mac. It need to link to the xerces library. The steps I took are
1. Used command line to recompile libxerces-c on Intel and installed in /usr/local/lib. lipo -info reports it has the right architecture
Non-fat file: libxerces-c.27.0.dylib is architecture: i386
2. Opened my XCode project for a C tool executable. The target SDK is "Current Mac OS"
3. It compiles but will not link to above library (which was added to project as external library). It lists a bunch of "undefined symbols" (all in xerces) during the linking step.
You either need to copy the xerces lib into the 10.4u SDK (at /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib), or use the Other Linker Flags to pass -l/usr/local/lib/libxerces-c.27.0.dylib explicitly to the Linker. Xcode doesn't support mixing SDK paths and system paths, so you need to either put your custom lib into the SDK or make it find your lib explicitly in the /usr/local path.
Chris |
_______________________________________________
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