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


#1

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?


#2

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


#3

I had the same problem, I solved it with :

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


#4

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?


#5

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