Re: XCode in Tiger
Re: XCode in Tiger
- Subject: Re: XCode in Tiger
- From: Howard Moon <email@hidden>
- Date: Thu, 30 Jun 2005 11:28:18 -0700
D'oh! That's it... under Panther, I had copied the files out of /
Developer/Examples/... into my own SDK structure, and forgot about it
when I copied over my files to Tiger, so I was using outdated files.
I'm pointing directly at the correct files now.
Thanks, Bill
-Howard
On Jun 30, 2005, at 10:57 AM, William Stewart wrote:
Are you sure you have the latest CA SDK that shipped with Tiger -
we fixed a number of issues gcc 4 complained about (its a lot
stricter in its interpretation of c++ rules now).
For instance, this is what this method now looks like:
AudioBufferList & SetBufferList(const AudioBufferList &abl) {
if (mAllocatedStreams <
abl.mNumberBuffers)
COMPONENT_THROW(-1);
mPtrState = kPtrsToExternalMemory;
memcpy(mPtrs, &abl, (char *)
&abl.mBuffers[abl.mNumberBuffers] - (char *)&abl);
return *mPtrs;
}
Bill
On 30/06/2005, at 9:50 AM, Howard Moon wrote:
Actually, I guess both errors refer to the "[abl.mNuberBuffers]"
part of the code. It looks like everywhere offsetof is used, I've
got compile errors. Is there a bug in the Tiger-supplied version
of the compiler (version 2.0 of XCode)? Looking at the project,
it's using GCC 4.0. Is that ok?
-Howard
On Jun 30, 2005, at 9:15 AM, Howard Moon wrote:
Hi,
I'm moving to a new partition on my Mac which now has Tiger
installed. When I compile my project that was working under
Panther, though, I get errors in the AU headers. For example,
this code:
AudioBufferList & SetBufferList(const AudioBufferList &abl) {
if (mAllocatedStreams <
abl.mNumberBuffers)
COMPONENT_THROW(-1);
mPtrState = kPtrsToExternalMemory;
memcpy(mPtrs, &abl, offsetof
(AudioBufferList, mBuffers[abl.mNumberBuffers]));
return *mPtrs;
}
produces two errors:
AUBuffer.h: In member function `AudioBufferList&
AUBufferList::SetBufferList(const AudioBufferList&)':
AUBuffer.h:85: error: 'abl' cannot appear in a constant-expression
AUBuffer.h:85: error: `.' cannot appear in a constant-expression
The first is for the symbol "&abl", while the second is for the
symbol "abl.mNumberBuffers".
Is there some setting I need to change somewhere under Tiger to
make this compile the way it does under Panther?
Thanks,
-Howard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40antarestech.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
--
mailto:email@hidden
tel: +1 408 974 4056
______________________________________________________________________
____
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
______________________________________________________________________
____
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden