• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying to link with non-Mach-O file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
Chuck Connell
781-939-0505 (office)
http://www.chc-3.com -- My home page
----- Original Message -----
From: Chris Espinosa
To: Chuck Connell
Cc: email@hidden
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

  • Follow-Ups:
    • Re: Trying to link with non-Mach-O file
      • From: Chris Espinosa <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>)

  • Prev by Date: Re: Trying to link with non-Mach-O file
  • Next by Date: Re: Executables stored in .pbxuser?
  • Previous by thread: Re: Trying to link with non-Mach-O file
  • Next by thread: Re: Trying to link with non-Mach-O file
  • Index(es):
    • Date
    • Thread