Thanks - I will check out ranlib to try and sort the index out. I don't get any warnings like you mentioned though. In fact, after the preprocess, there seem to be no warnings at all. Unless I'm looking at the wrong window (I'm clicking on the little results Icon at the bottom right of the project window that brings up the build results).
I've recently tried adjusting the order of the CoreServices framework and the Oracle library in the library link stage (dragging the CoreServices library above the Oracle library) and, 'boom', I get 44 linker errors on unresolved Core Services calls - right clicking on the Core Services framework and selecting preprocess results in a clean build. Swapping them back again switches the problem back to the Oracle lib. Is there something fundamental I'm missing here? >>> On 19/05/2008 at 20:53, in message < email@hidden>, Jack Repenning <email@hidden> wrote:
On May 19, 2008, at 5:14 AM, 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 (.a 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 have no idea how "Preprocess" might get involved in this problem. My reflex would be to say "it couldn't possibly!" but possibilities often surprise us. But your set-up (with your later correction that it's a .a, not a .o) suggests a different, and common, and therefore credible and perhaps more likely, explanation: .a libraries have an internal index that's both optional and fragile, and "missing symbol" problems often come down to a need to re-index. This can arise at the time you plop the library into your project (as opposed to simply using it from wherever Oracle actually installed it).
Check your build transcript for "may have been moved" warnings (which silently imply "... so I'm going to ignore the index," a classic Unix misdirection).
Check "man ranlib" for how to fix this.
-==- Jack Repenning
email@hidden
Project Owner
SCPlugin http://scplugin.tigris.org
"Subversion for the rest of OS X"
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.
|