Using JuceHeader.h has been deprecated for some time — if it’s a new project, definitely avoid it!

Instead, directly include the .h files you need from the juce modules you are using, like so: #include "juce_gui_basics/juce_gui_basics.h"

If you are converting an older project, it’s still worth the conversion away from JuceHeader.h to using the actual juce modules you need. You’ll get faster compilation, autocomplete, etc.

You can see an example of the conversion I did for the pluginval project. It’s less scary than you think: just make sure the juce:: prefix is added everywhere, try to compile and your IDE will yell at you when you need to include one of the modules 🙂


Leave a Reply

Your email address will not be published. Required fields are marked *