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: Compiling cctools in Codewarrior/PEF




On Oct 18, 2004, at 6:55 AM, Josh wrote:

<sorry if this is a repost - I didn't see it posted the first time I
emailed it...>

I'm trying to compile the some of the prebinding libraries included in
cctools using Codewarrior. Ultimately, I want to call unprebind() from
a Carbon CFM app. The problem is that it compiles as a Mach-O static
library (and I need it to be static) and I can't call that from a CFM
app.

Why can't you compile it as a bundle and load that? I believe that is the
supported way of calling Mach-O code from CFM apps, no?


 The other option is to compile it as a Carbon PEF library, but I
can't get codewarrior to do this (mwpefcc gives me all sorts of errors
with the #include statements).

What kind of errors? If it's problems with the #import statements, you may
want to take a look at the odcctools project <http://www.opendarwin.org/projects/odcctools/>,
which maintains a set of patches against cctools. for greater portability
and ease of building. You probably want to apply the patches to some
version of cctools released by Apple in a developer tools release, unlike
the cctools snapshots they currently use.


 Anyone have any experience or tips with
this?

Not really. Most developers have moved to Mach-O.

Shantonu
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Compiling cctools in Codewarrior/PEF (From: Josh <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.