Errors from compiler not reported on Windows like they are on Mac

Recently I got a couple of bug reports from people using my plugins with Windows IDE.

Random functions were reported as missing.

So I found you can have a plugin like AVFoundation (Which has a lot of dependencies) in plugins folder and get no error on Windows building your app!
But as soon as you call a single plugin function, you get an error reported at the wrong point.

See feedback cases 38263 and 38542. Any idea what is going on there?

<https://xojo.com/issue/38542>
<https://xojo.com/issue/38542>