Reference to point is ambiguous


#1

Hi, started getting this in OSX release builds. Debug is fine.

I have copied juce::StandaloneFilterApp so that I can add a setUsingNativeTitleBar() call to initialise.

This all works fine in Debug but when I go to build release, I get the error. Any ideas?

thx


#2

If you’re including system headers, just include them before the juce ones.


#3

Hi Jules, ok thx - that’s got rid of the Point issue it seems - I’m now getting Button ambiguities, but at least they’re in my code so I can go and scope them.

thx!


#4

So it looks like I now need to replace all Button references with juce::Button - any shortcut to doing this? thx


#5
using juce::Button;

Or don’t include the other headers except where you absolutely need them, so that there are fewer clashes. That’s generally good advice anyway.


#6

I did try that in a top level header file, but then got told I needed to put class in front of all Button references so it’s still same amount of effort - at the end of the day, it’s not a big deal as I can just global replace all buttonClicked methods

However, it does make me think I’m just doing something wrong here?

I’ve copied juce_StandaloneFilterApp.cpp to my own class so I can have all its functionality but have my own initialise call. it’s all the header files at the beginning of this file that I’m including (which are obviously all needed) that is causing this problem to happen. Maybe there’s a better way to be going about replacing initialise() than this? Though from reading other posts, creating my own JUCEApplication class is the way to do.


#7

I sent you a PM explaining how I replaced the StandaloneFilterApp. I’ll just post this here in case anyone else runs into the same issue… in your copy of the StandaloneFilterApp class – don’t include any of the header files included in the original (except the include for the StandalonePluginHolder header file).

In your copy of juce_StandaloneFilterWindow.h add:

#if JUCE_MODULE_AVAILABLE_juce_audio_plugin_client

    #include <juce_audio_plugin_client/utility/juce_IncludeModuleHeaders.h>

#endif

Rail


#8

Hi Rail - thanks for that. That was the key - I’d done all the same steps as you, but when creating my own app from juce_StandaloneFilterApp.cpp, I’d copied all the header files across from that - replaced them just with the juce_IncludeModuleHeaders.h as you suggested and all the duplicates have gone… thanks!


Styling the Standalone plugin window?