Including Header File Errors With Plugin Framework?


#1

Im having difficulty including a header file inside the vst framework.

If I try to include myheader.h NOT!! within the vst framework!, it only works if i include it before #include “juce.h” is called and does not give me any errors, which is fine. The problem is I can’t seem to include this header file within the vst framework, even if I put it before #include “juce.h” still giving me errors as below, where is the first instance of juce.h in the framework? Where is the best place for this include?

1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(894) : error C2988: unrecognizable template declaration/definition 1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(894) : error C2059: syntax error : '(' 1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(894) : error C2090: function returns array 1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(894) : error C2988: unrecognizable template declaration/definition 1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(894) : error C2059: syntax error : ')' 1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(1454) : error C2143: syntax error : missing ';' before '*' 1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(2938) : error C2143: syntax error : missing ';' before 'identifier' 1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(2938) : warning C4091: 'typedef ' : ignored on left of '_FLOATING_SAVE_AREA' when no variable is declared 1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(2938) : fatal error C1075: end of file found before the left brace '{' at 'C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(22)' was matched


#2

It doesn’t matter where juce.h is included within the framework code. If you make your own header the first thing in your own cpp files, then it can’t go wrong…


#3

Thanks jules, that works:)


#4