Hey, this is getting really frustrating…
I am a complete beginner with JUCE and when i tried to build my first plugin (made with a tutorial), it just gave me a massive amount of errors and did not build. So, to test if the problem was my code or not, i made a new project. The project includes nothing but the default code in PluginProcessor.h/.cpp and PluginEditor.h/.cpp, but still shows 250+ errors when i try to build it in Visual Studio. I have the latest version of both JUCE and Visual Studio installed, i set all the JUCE paths right. Switching the C++ version in Projucer settings doesn’t do anything either.
The problem only seems to be with plugin, because when i tried to build a blank Application project, it builds just fine, without a single error.
Do you guys have any idea what is causing this?
The first one specificaly is E1455:member function declared with ‘override’ does not override a base class member. Most of them seem to be similar problems or syntax errors.
I have also tried to build example plugins and they work just fine with no errors whatsoever.
Intellisense sometimes gets confused with the Juce header files and can’t recognize Juce types. Once the program compiles successfully the first time, it usually goes away. My guess is that you only have one error in your code, and the others are phantoms. The problem is sifting through the 250+ to find the right one (I know how frustrating that can be). Check that you don’t have any mismatched #includes, then start commenting out code, nearly everything, until you get a bare-bones program that works. Then start uncommenting it out bit by bit to find where the problem is.
On another note, check that you don’t have a stray } at the bottom of the file. This can cause chaos, but the compiler can’t pinpoint it.