@griffinboy
Solved, it was me being silly. I checked and it was only certain projects that had the issue.
After investigation I found what I had done wrong:
#include <Windows.h>
^ I had used this line in my c++ nodes,
And it happens that Windows.h has methods with the same naming as some of the Hise files, creating a conflict.
The include was actually in a dsp file that I wasn't even using, which is how I missed it.
But when Hise goes to compile as VST it runs every c++ dsp file, and so the error flagged.