Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to link with non-Mach-O file



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.
Chuck Connell
781-939-0505 (office)
http://www.chc-3.com -- My home page
----- 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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Re: .pbxuser in version control (was Re: Executables stored in .pbxuser? (From: David Catmull <email@hidden>)
 >Trying to link with non-Mach-O file (From: "Chuck Connell" <email@hidden>)
 >Re: Trying to link with non-Mach-O file (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.