Reference to 'Point' is ambiguous


#1

see attached XCode error log.
juce::Point and the Carbon’s Point struct (defined in CarbonCore/MacTypes.h) seem to clash despite my use of JUCE_DONT_DEFINE_MACROS.
As you can see the log pays attention to the fact that juce::Point belongs to the juce namespace but still regards two entities as producing ambiguity. What in the world could be wrong here? (Pulling my hair out the whole day already on this one…)


#2

If you need to include any system headers, always do it before including the juce headers. My stuff is namespace-aware, but theirs often isn’t.


#3

I see… Thanks! It worked.