• 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
Objective-C++/C++ with CocoaUI Issue...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Objective-C++/C++ with CocoaUI Issue...


  • Subject: Objective-C++/C++ with CocoaUI Issue...
  • From: Richard Burnett <email@hidden>
  • Date: Sun, 18 Jun 2006 13:00:13 -0400

I have a C++ class named "Lfo" defined in a set of files (Lfo.cpp, Lfo.h). Inside my AUBaseEffect, I instantiate an Lfo object. I pass the pointer of the object with the GetProperty functionality into my view class.

The problem I am having is that if I copy my Lfo.cpp and Lfo,h files in the Compile Sources of the 'CocaUI' target, I get >2000 errors when it is precompiling the headers. If I don't copy the files over, and I try to build the project, the linker cannot find any of the functions for Lfo, which is true since the source wouldn't be linked in, since it wasn't compiled in.

What is the proper way in Xcode to have it allow C++ and Objective-C+ + together?

As another option, I tried creating a new target of type carbon object. I placed to the Lfo files in there and built them, then took that and added it to the 'Link Binary With Libraries' of the 'CocoaUI'. This then built with no problem, but when I bring up the UI in a host, it then tells me:

AU view's main class does not properly implement the AUCocoaUIBase protocol

And that is with just including the .o file, not doing anything with it (I commented out all the calls and reference to anything in that file just to see if it was the fact the file was just linked in with it).

I am at a loss of what to do from this point.  Any suggestions?

Rick
_______________________________________________
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


  • Follow-Ups:
    • Re: Objective-C++/C++ with CocoaUI Issue...
      • From: Herbie Robinson <email@hidden>
  • Prev by Date: value range for *sourceP
  • Next by Date: Re: Objective-C++/C++ with CocoaUI Issue...
  • Previous by thread: Re: value range for *sourceP
  • Next by thread: Re: Objective-C++/C++ with CocoaUI Issue...
  • Index(es):
    • Date
    • Thread