Odd problem in xCode - AUCarbonViewBase.cpp


#1

I downloaded the tip today and did as I always do:

1. Try to build the introjucer - success!

2. Try to build the demo plug - meh, not so successful.  I received the following message:

​/Applications/Xcode.app/Contents/Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUCarbonViewBase/AUCarbonViewBase.cpp:263:30: Non-constant-expression cannot be narrowed from type 'short' to 'CGFloat' (aka 'float') in initializer list

It is odd as I have done this a few times in the past month or so and I have never had this type of error (others, sure, but they mostly things in my own code).  xCode even provided me with an easy fix, but I did not try it as I don't think I should ever change this file at all.  

Any ideas?


#2

Update - I was able to compile all of the projects in the tip with no difficulties except for the plugin demo.


#3

See here:

http://www.juce.com/learn/tutorials-code-examples/create-basic-audio-midi-plugin-part-15-patching-apples-core-audio