Re: Creating cocoa frameworks
Re: Creating cocoa frameworks
- Subject: Re: Creating cocoa frameworks
- From: email@hidden (Garvin Haslett)
- Date: Tue, 1 Jun 2004 21:45:29 +0100
Ok,
I've included a .pch file in my project and added the following lines:
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
#include <ApplicationServices/ApplicationServices.h>
I've also removed the linker flags.
Now I get 195 errors when I try to build, mostly in a set of files
prefixed OPC and also in some files prefixed Ice.
The main offenders are IcePoint.h, IceAxes.h, OPC_MeshInterface.h and
OPC_Common.h. A number of errors refer to a conflict between
MacTypes.h and IcePoint.h. Essentially both headers declare a type
called Point.
If I comment out the references to Application services in the .pch
file I get two errors, they are:
CocoaODE:0:
/Users/tifkagh/src/ode-0.039/contrib/CocoaODE/build/CocoaODE.build/
CocoaODEfw.build/Objects-normal/ppc/QuickTimeCode.o illegal reference
to symbol: _DisposeGWorld defined in indirectly referenced dynamic
library
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/QD.framework/Versions/A/QD
and
CocoaODE:0:
/Users/tifkagh/src/ode-0.039/contrib/CocoaODE/build/CocoaODE.build/
CocoaODEfw.build/Objects-normal/ppc/QuickTimeCode.o illegal reference
to symbol: _DisposeHandle defined in indirectly referenced dynamic
library
/System/Library/Frameworks/CoreServices.framework/Versions/A/
Frameworks/CarbonCore.framework/Versions/A/CarbonCore
It was because of these two errors that I originally attempted to
include the ApplicationServices Framework.
What is the correct way to link this code into the project?
Thanks,
Garvin
On 1 Jun 2004, at 21:27, Nick Zitzmann wrote:
>
>
On Jun 1, 2004, at 12:08 PM, Garvin Haslett wrote:
>
>
> I've brought all the relevant code into a framework project and I'm
>
> using the following linker flags:
>
>
>
> -framework ApplicationServices -framework Foundation -framework AppKit
>
>
Don't use the linker flags setting to link in the frameworks. Instead,
>
add the Cocoa and ApplicationServices frameworks directly into your
>
project, and make sure they're enabled in the appropriate target(s).
>
I've had this problem before, and doing the above solved it, so maybe
>
it'll work for you...
>
>
Nick Zitzmann
>
<http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.