Re: Framework issues
Re: Framework issues
- Subject: Re: Framework issues
- From: Philip Ershler <email@hidden>
- Date: Tue, 22 Mar 2005 16:27:09 -0700
OK, consider my "hand slapped". I have moved the framework into /Library/Frameworks. This has not changed the behavior (didn't really expect it to). Also, for some additional info I am running X-Code 1.5 on 10.3.8. Here is some more information of the errors that I get when I
#import <FWLib/FWLib.h>
Here is the include file where the avalanche begins.
/*
File: FWLib_NuDCLPool.h
Synopsis: C++ Interface for IOFireWireLibNuDCLPool
Copyright: © Copyright 2001-2003 Apple Computer, Inc. All rights reserved.
<snip> (Apple discalmer removed for mailing purposes)
#import <IOKit/firewire/IOFireWireLibIsoch.h>
namespace FWLib { //This is line 56
class Device ;
class NuDCLPool
{
private:
IOFireWireNuDCLPoolInterface** mPool ;
public:
NuDCLPool( Device& device, UInt32 capacity = 0 ) ;
virtual ~NuDCLPool() ;
public:
// allocating DCLs:
inline NuDCLRef AllocateSendPacket( CFMutableSetRef updateSet, UInt32 numRanges, IOVirtualRange ranges[] ) { return (**mPool).AllocateSendPacket( mPool, updateSet, numRanges, ranges ) ; }
// modifying DCLs:
inline IOReturn AppendDCLRanges( NuDCLRef dcl, UInt32 numRanges, IOVirtualRange ranges[] ) { return (**mPool).AppendDCLRanges( dcl, numRanges, ranges ) ; }
inline IOReturn SetDCLUpdateList( NuDCLRef dcl, CFSetRef dclList ) { return (**mPool).SetDCLUpdateList( dcl, dclList ) ; }
inline IOReturn SetDCLBranch( NuDCLRef dcl, NuDCLRef branchDCL ) { return (**mPool).SetDCLBranch( dcl, branchDCL ) ; }
inline NuDCLRef GetDCLBranch( NuDCLRef dcl ) { return (**mPool).GetDCLBranch( dcl ) ; }
// other:
inline void PrintProgram() { (**mPool).PrintProgram( mPool ) ; }
inline DCLCommand* GetProgram() { return (**mPool).GetProgram( mPool ) ; }
inline IOFireWireNuDCLPoolInterface** Interface() { return mPool ; }
} ;
} // namespace
And here is the front end of the error listing.
Thanks, Phil
<x-tad-smaller>Building target “crap” with build style “Development” (optimization:level ‘0’, debug-symbols:on) — (189 errors)
</x-tad-smaller><x-tad-smaller> cd /Users/ershler/Projects/crap
/usr/bin/gcc-3.3 -x objective-c -arch ppc -pipe -Wno-trigraphs -fasm-blocks -fpascal-strings -g -O0 -mtune=G4 -fmessage-length=0 -ffix-and-continue -fzero-link -F/Users/ershler/Projects/crap/build -I/Users/ershler/Projects/crap/build/include -I/Users/ershler/Projects/crap/build/crap.build/crap.build/DerivedSources -Wp,-header-mapfile,/Users/ershler/Projects/crap/build/crap.build/crap.build/crap.hmap -include /Users/ershler/Projects/crap/build/crap.build/SharedCaches/crap_Prefix-ajiutgbbpydbvgcwtyalzwdsfkrb/crap_Prefix.pch -c /Users/ershler/Projects/crap/main.m -o /Users/ershler/Projects/crap/build/crap.build/crap.build/Objects-normal/ppc/main.o
</x-tad-smaller><x-tad-smaller>In file included from /Library/Frameworks/FWLib.framework/Headers/FWLib.h:64,
from /Users/ershler/Projects/crap/main.m:10:
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:56: error: parse error before "FWLib"
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:56: error: syntax error before '{' token
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:61: error: syntax error before '{' token
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h: In function `AppendDCLRanges':
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:77: error: `mPool' undeclared (first use in this function)
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:77: error: (Each undeclared identifier is reported only once
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:77: error: for each function it appears in.)
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h: In function `SetDCLUpdateList':
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:78: error: `mPool' undeclared (first use in this function)
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h: In function `SetDCLBranch':
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:79: error: `mPool' undeclared (first use in this function)
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h: In function `GetDCLBranch':
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:80: error: `mPool' undeclared (first use in this function)
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h: In function `PrintProgram':
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:84: error: `mPool' undeclared (first use in this function)
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h: In function `GetProgram':
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:85: error: `mPool' undeclared (first use in this function)
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h: In function `Interface':
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:86: error: `mPool' undeclared (first use in this function)
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h: At top level:
/Library/Frameworks/FWLib.framework/Headers/FWLib_NuDCLPool.h:87: error: parse error before '}' token
</x-tad-smaller>
On Mar 22, 2005, at 2:32 PM, Scott Tooker wrote:
Hmm, can you post the errors that you are getting when building? From your description below it's not clear exactly what is wrong.
Also, don't put third party frameworks in /System/Library/Frameworks. /System is meant for Apple frameworks and the like (the sole exception being kernel extensions). 3rd party frameworks should be installed in /Library/Frameworks/. If you are developing a new framework that you want other proejcts to access, you can share a build products directory among the projects or place the framework in ~/Library/Frameworks (the latter option means that only your user account will use the framework).
Scott
On Mar 22, 2005, at 11:30 AM, Phil Ershler wrote:
I am working on a couple of fairly simple projects that need access to the FWLib.framework. I have installed the latest FireWire SDK. It has an example project that builds the FWLib.framework. I have built that framework and copied it to /System/Library/Frameworks. Now I have two projects that both use the FWLib.framework. One of the projects builds just swell. The other project gets into a series of cascading errors (over 200) when I try to reference the same framework. The errors begin with a namespace FWLib statement in one of the include files that makes up the framework. I have deleted the framework from both projects and re-added it to both projects so that I believe I am referencing the same framework in both projects. After cleaning both projects and trying to rebuild, the one project rebuilds as before and the other project fails in the same way as above. What am I missing?
Thanks, Phil Ershler
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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