Yes, you need to compile the plugin with the same compiler as the host program.
This has to do with symbolic names etc... in the compiled binaries.

In other words, mingw and msvc speak different languages.