• 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: Adding .cpp files to project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding .cpp files to project


  • Subject: Re: Adding .cpp files to project
  • From: "Kyle Sluder" <email@hidden>
  • Date: Thu, 2 Aug 2007 23:02:56 -0400

You're probably #importing Objective-C headers in your .cpp's header
file.  Either that, or your prefix header is an Objective-C header.
g++ will choke on the Objective-C syntax present in these headers.

--Kyle Sluder

On 8/2/07, Lorenzo Thurman <email@hidden> wrote:
>
> Here's what I want to do:
> I want to be able to switch the currently selected audio input device (Apple
> audio input -> iMic)
> Before you tell you me to check CoreAudio, I did, and I found some sample
> code (ComplexPlayThru ) that does just that, among other things.
> I want to incorporate the switching into my app, so I added some of the
> files from the project to my project via drag/drop from the finder.
>
> I only need to reference one of the headers in my project, (I think), but
> when I do that,  get a slew of errors pointing not only to the referenced
> header, but to the headers referenced by it. I'm doing something wrong here,
> I'm sure, but I don't know what. I thought one or both of these compiler
> settings might help, but no dice:
> Compile soure as: According to file type // All the files have the .cpp
> extension.
> C language dialect: Compiler default. // I changed this from the default to
> another setting and got the same errors
>
> There are a number of C++ settings, but most of these were checked by
> default, I enabled others, but still the same errors. I've read on the list
> and in the archives threads of this nature, but could not find anything that
> helped.
> I tried the CoreAudio list, but got no answers, but I think this is more an
> Xcode question as I would likely have problems including any .cpp files, but
> I'll try there again also, but in the meantime, if anyone has any tips, I'd
> greatly appreciate hearing them.
>
> Alternatively, if anyone knows a simpler way to achieve my goal, I'd like to
> hear it, but that question is certainly a CoreAudio question.
> TIA
>
>
> "A good friend will help you move. A really good friend will help you
> move... a body"
> --Unknown
>
> Lorenzo Thurman
> 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

  • Follow-Ups:
    • Re: Adding .cpp files to project
      • From: Lorenzo Thurman <email@hidden>
References: 
 >Adding .cpp files to project (From: Lorenzo Thurman <email@hidden>)

  • Prev by Date: Adding .cpp files to project
  • Next by Date: Re: debugger breakpoint bug?
  • Previous by thread: Adding .cpp files to project
  • Next by thread: Re: Adding .cpp files to project
  • Index(es):
    • Date
    • Thread