A bunch of Audioeffect and Audioeffectx functions are coming up as already defined when linking juce_VstWrapper.obj
I tried the obvious - making sure the files weren't included twice, switching RTTL types (that made it worse).
Unfortunately any info I can find on this error is always about what order MFC and CRT are included in.
Strange. Youāve not got audioeffectx.cpp in your project, have you? The steinberg cpp files are included directly inside the juce VST wrapper cpp file, so you only need to add the juce files to your project, not the steinberg ones.
main() is used to launch the plugin, but itās all handled internally by the juce wrapper code. Make sure youāve not written your own main routine or built the plugin as an exe.
The 2 mains I found were in juce.h and juce_VstWrapper.cpp, obviously legit since other users arenāt epidemically stuck at the same spot - do I compile 'em separately (currently juceVstWrapper.cpp is part of my plugin project)?
the one in juce.h is a macro - as long as youāve not used START_JUCE_APPLICATION anywhere, then itās not going to cause trouble. The one in juce_VSTWrapper is the correct one, so leave that in your project.
Okay I had used the macro. The name was just too tempting (seriously though the descriptive names help a TON).
I think I only have one error left (on the Juce end of things!)
I #included my Jucer GUI header file, but the GUIās cpp file also includes that same header. The redundancy check changes when I edit the file in Jucer - JUCER_HEADER_MRGUI_, so I canāt use it in my files.
I tried ā#pragma once,ā no such luck, and didnāt see a space for a #endif for my own redundancy guard.
Also just for kicks I tried #including just the cpp file, thinking it might include the .h file (once) and be hypothetically kopasetic. The compilerās still mad at me for that one.
Basically itās telling me that my Jucer classes are already defined, though all I did was #include āM2RGUI.hā once, which then includes its subcomponents automatically (I didnāt re-include those).
When I declare a pointer to an M2RGUI object (even the automatic declarations within M2RGUI of pointers to its subcomponents), Iām getting errors that indicate the files are being included twice (missing ā;ā before ā*ā and 2 missing type specifiers).
Well all the jucer files will have header guards on them, so can be included any number of times. Must be some other simple mistake, but I canāt tell what from your descriptionā¦