Re: The Xcode 'Preprocess' option - what is it actually doing?
Re: The Xcode 'Preprocess' option - what is it actually doing?
- Subject: Re: The Xcode 'Preprocess' option - what is it actually doing?
- From: "Andrew Middleditch" <email@hidden>
- Date: Mon, 19 May 2008 19:25:38 +0100
Just to clarify from my previous post - the library in question is called libclntst10.a (.a file and not a .o as I'd previously stated). The library is a static library for Oracle OCI calls.
I have the following includes in my C source:
#include <oci.h>
#include <stdlib.h>
#include <stdio.h>
#include <sqlcpr.h>
#include <CoreServices/CoreServices.h>
oci.h being the referencing header for the static lib.
I'm running Xcode 3.0, gcc 4.0 and targeting i386. I have tried referencing the library in the 'pre-link libraries' build setting - with no change to the result - so I'm using the default build settings on a standard C Xcode project.
Any ideas?
>>> On 19/05/2008 at 13:14, in message, Andrew Middleditch wrote:
What exactly does the 'Preprocess' option do in XCode (v3)? I'm referring to the right-click, context sensitive, menu option you get on a library file when it is included in the xcode project (.O file).
I'm currently developing a program in plain C with Carbon libraries that uses the Oracle OCI library to connect to an Oracle database. I've tried over and over to get the thing to build cleanly, but it always failed at the link stage with a couple of unresolved references to the Oracle library. After playing around a little, I've found if I fully clean and rebuild, and allow it to fail with the unsolved references, and then select 'Preprocess' on the Oracle library, hey presto I have built binary with success! Is there something I'm missing about this? Can I add a build stage to add this preprocess step in somewhere? (I can supply more details if required e.g. version numbers, file names etc.).
WARNING
This E-mail and any attachments may contain information that is confidential or privileged, and is intended solely for the use of the named recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or any action taken is prohibited and may be unlawful.
Any opinions expressed are those of the author and not necessarily the view of the Council.
North Yorkshire County Council.
_______________________________________________
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