Re: Trying to link with non-Mach-O file
Re: Trying to link with non-Mach-O file
- Subject: Re: Trying to link with non-Mach-O file
- From: "Chuck Connell" <email@hidden>
- Date: Thu, 27 Apr 2006 15:53:04 -0400
- Organization: CHC-3
Thanks much. I will look at that link.
Does it make sense that in the earlier days of OS
X, that programmers could have linked to this CFM library using CodeWarrior? I
am trying to figure out how Notes C programming used to work on a Mac, but now
does not?
Thanks.
----- Original Message -----
Sent: Thursday, April 27, 2006 3:40
PM
Subject: Re: Trying to link with
non-Mach-O file
On Apr 27, 2006, at 12:38 PM, Chuck Connell wrote:
I am a Lotus Notes programmer. Most of this
work has been in the Wintel world. I am trying to port some Notes API
C-language code to OS X 10.4, using Xcode. I have the latest versions of all
Mac software on a new Mac Mini. The problem is that when I link my C program
to the installed Notes libraries, the link operation fails. The error I get
is "not a Mach-O file". Notes itself runs fine on the Mini, so its binaries
are working.
What tool can I use to tell me about the
contents of the Notes binaries? I have tried nm, which tells me that the
file I am examining is not an object file. I have tried otool, which tells
me nothing. The file I am trying to link with is named NotesLib, and I
believe that it was a valid link library, although this may have been back
in the OS9 / CodeWarrior days.
This is most likely a CFM shared library. You cannot link with it
using Xcode, but you can write code that dynamically loads it and calls its
entry points, using Apple's sample code CFM_MachO_CFM.
This library will not work on an Intel-based Mac.
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