• 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: Creating and loading a shared library bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating and loading a shared library bundle?


  • Subject: Re: Creating and loading a shared library bundle?
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 15 Jan 2004 17:04:34 -0800

On Jan 15, 2004, at 9:22 AM, Colsher, William wrote:

I am currently trying to create a CFM shared library to be used from a Cocoa
front end created in XCode.


Using CodeWarrior 8.3 I appear to be successfully creating the shared
library (N.B. There is no opportunity to switch out of CW8 for this
development cycle.)

Back in the nifty new Cocoa front end, I am able to create a URL to the
bundle and successfully call CFBundleCreate(). Then when I call
CFBundleLoadExecutable() the application crashes silently with no indication
from the debugger or in the console log that anything bad had happened.

1. You can not load shared libraries using CFBundle. The linker will load the code's linked shared libraries at startup time. CFBundle and NSBundle are used to load plug-in-style bundles.


2. You can not link CFM shared libraries to Mach-O executables, nor can you write CFM Cocoa programs.

So try converting that CFM shared library into a Mach-O framework, and then include that framework in the Xcode project. I don't know if CW8 can create Mach-O frameworks or not, but if it can't, then you'll have to switch the library project over to Xcode...

Nick Zitzmann
<http://seiryu.home.comcast.net/>
<http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request

UNIX: Where /sbin/init is Job #1.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Creating and loading a shared library bundle? (From: "Colsher, William" <email@hidden>)

  • Prev by Date: Re: Documentation viewer psuedo-broken
  • Next by Date: Java VM warning...
  • Previous by thread: Creating and loading a shared library bundle?
  • Next by thread: Editing Build Styles
  • Index(es):
    • Date
    • Thread