• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GCC failed with exit code 1?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >GCC failed with exit code 1? (From: Eamon Ford <email@hidden>)

  • Prev by Date: GCC failed with exit code 1?
  • Next by Date: Re: GCC failed with exit code 1?
  • Previous by thread: GCC failed with exit code 1?
  • Next by thread: Re: GCC failed with exit code 1?
  • Index(es):
    • Date
    • Thread