//==============================================================================
#ifdef JUCE_MAC
extern "C" __attribute__((visibility("default"))) AEffect* main_macho (audioMasterCallback audioMaster)
{
initialiseJuce_GUI();
#else
__declspec(dllexport) void* main (audioMasterCallback audioMaster)
{
#endif
MessageManager::getInstance()->setTimeBeforeShowingWaitCursor (0);
try
{
if (audioMaster (0, audioMasterVersion, 0, 0, 0, 0) != 0)
{
JuceVSTWrapper* const wrapper = new JuceVSTWrapper (audioMaster,
createPluginFilter());
return (int)wrapper->getAeffect();
}
}
catch (...)
{}
return 0;
}
and an error:
1042 C:\atm\projects\myPlug\wrapper\formats\VST\juce_VstWrapper.cpp `main' must return `int'
the compiler uses the main declaration cause this is not a MAC, what’s up with that ?(change some defines?)
latest DEV-CPP juce+demo (standalone) compiled clean. VST SDk 2.4 (changed defines to use 2.4 not 2.3).