[PATCH] Jucer ComponentTemplate should include JuceHeader.h


#1

Hello

Create a new application with Introjucer, add a component created in Jucer and it won’t compile since it can’t find “juce.h”. Change to “JuceHeader.h” and it works. Suggested patch below:

[code]$ git diff
diff --git a/extras/the jucer/src/templates/jucer_ComponentTemplate.h b/extras/the jucer/src/templates/jucer_ComponentTemplate.h
index 6ff5402…02270cc 100644
— a/extras/the jucer/src/templates/jucer_ComponentTemplate.h
+++ b/extras/the jucer/src/templates/jucer_ComponentTemplate.h
@@ -23,7 +23,7 @@
#define %%headerGuard%%

//[Headers] – You can add your own extra header files here –
-#include “juce.h”
+#include “JuceHeader.h”
//[/Headers]

%%includeFilesH%%[/code]

/Johan


#2

Well, the idea is that you’d replace that include with your own header file, but it’s a good point, I will tweak it to put JuceHeader.h in there as a default, just to avoid confusion - thanks!