x64 VST plugin


#1

Hi Jules,

Just tried to build a 64 bits vst plugin, and the compiler (msvc 2008) choke on the “void* main (audioMasterCallback audioMaster)” plugin entry points, saying “error C3874: return type of ‘main’ should be ‘int’ instead of ‘void *’”

Putting it inside an #ifndef _WIN64 solved it, and I am glad to say that it was the only modification I had to do in order to obtain a fully working 64 bits plugin ! This is the kind of thing that makes me happy of being a Juce user, thank you so much Jules for making our life easier !

I think putting the “main” entry point in the ifndef is not a problem since 64 bits are VST 2.4 and the “main” entry is a VST 2.3 feature if I am not mistaken


#2

Excellent! So you’re just commenting-out the whole function like this:

[code]#ifndef _WIN64
extern “C” __declspec (dllexport) void* main (audioMasterCallback audioMaster)
{
return (void*) pluginEntryPoint (audioMaster);
}
#endif

[/code]

?


#3

Yes, exactly.