Re: GCC failed with exit code 1?
Re: GCC failed with exit code 1?
- Subject: Re: GCC failed with exit code 1?
- From: David Dunham <email@hidden>
- Date: Sun, 12 Aug 2007 12:59:44 -0700
On 12 Aug 2007, at 12:24, Eamon Ford wrote:
When I try to compile this piece of code...
float* samples = (float*)(buffer->mData);
...I get "Command /usr/bin/gcc-4.0 failed with exit code 1". mData
is declared in the AudioBuffer structure (CoreAudio) as a void* to
an array of float values.
Does anyone know why I'm getting this error? Here's my build
transcript.
cc1obj: warnings being treated as errors
/Users/eamonford/Desktop/Recordotron/AppController.m: In function '-
[AppController
readCycleForDevice:timeStamp:inputData:inputTime:outputData:outputTime
:clientData:]':
/Users/eamonford/Desktop/Recordotron/AppController.m:61: warning:
unused variable 'samples'
So are you actually using "samples" in your code? The output says
it's not used, and that's considered an error.
David Dunham A Sharp, LLC
Voice/Fax: 206 783 7404 http://a-sharp.com
Efficiency is intelligent laziness.
_______________________________________________
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