Can't build demo VST plugin with Intel C++ compiler

I get this error: error: return value type does not match the function type

#ifndef _WIN64 // (can't compile this on win64, but it's not needed anyway with VST2.4) extern "C" __declspec (dllexport) void* main (audioMasterCallback audioMaster) { return (void*) pluginEntryPoint (audioMaster); } #endif

Any ideas what is happening here?

Maybe the intel compiler wants main() to return an int?

I had the same problem, I solved it with :

extern "C" __declspec (dllexport) int main (audioMasterCallback audioMaster) { return (int) pluginEntryPoint (audioMaster); }

yes, that solves it for me too.

Is there any possibility to generally change this in the wrapper code or does this break compatibility with other compilers?

yeah, I think it’s probably safe to change it. Will do that when I get a moment.