I’m trying to build a plugin for Windows using the standard MingW toolchain on Ubuntu bionic. Rack crashes once the plugin declares an ifstream (works fine in Linux and Mac version). Commenting the declaration makes the plugin work. It seems I’m hitting some type of bug in the toolchain or something that is build environment specific as a plugin that uses ifstream in the plugin library (such as STS MIDI) runs fine with the library copy but crashes with my build. Does anyone know what is the exact VCV plugin library build environment (What Linux distro+version and x86_64-w64-mingw32 toolchain version)? Does it use the standard Rack-SDK available for download?
This is really odd. I’ve removed everything from this function other than the line declaring the ifstream. Once I load the plugin in Windows it crashes with the following in the log:
As you can see, the function is entered and crashes after the ifstream declaration. Everything else is removed or commented out. This works fine in both Linux and Mac native builds.