I get this error only when building a native library with /MD on Win64.Don't you mean when executing on Win64?
MichaelT wrote:An alternative still exists. Do not use JNI. Instead
By the way, building with /MD is requirement imposed by 3rd party libraries I depend upon so removing it is not an option.