I am trying to build the audio plugin demo on VC++ 2003 toolkit with codeblocks.
I get plentyfull error messages relating to WinNT.h which is weird. The kind you get when you forget to close a bracket.
I have tried importing the VS project, which first gives me an error saying JucePluginCharacteristics.h can be found. After I adjust the path, I get the WinNT errors.
Then I tried moving all the files (wrapper and demo) into a single dir and import them into a blank DLL project. This too requires some paths to be ajusted, but the build gives the exact same result.
the “unrecognizable template declaration/definition” bit is, if you look in the code it points to, around a spot where something called “T” is used in the winnt.h file. ‘T’ is at this point already defined as a juce macro. this macro is always defined when you include juce.h, and this error happens because windows.h is being included afterwards.
the options are: include windows.h BEFORE juce.h is ever included, OR hide any sign of things that may clash… the main things that cause problems are juce::Rectangle and the T macro, because those two words are used in the windows headers.
this thread discusses the problem, and has several possible fixes you can use.
I still got that darn odbc32 error though. If I just delete the lib entries, the error goes away, but I’d kind of like to know why they are there. Is it better to install odbc?