Using JuceHeader.h
has been deprecated for some time — if this is 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 pluginval. 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 to clean everything else up 🙂
Leave a Reply