JNI: vcvars32.bat gives me “Cannot open include file: 'stdio.h': No such file or directory”

后端 未结 1 387
Happy的楠姐
Happy的楠姐 2021-01-25 04:17

I am trying to use JNI to integrate a .C code with my Java project.

While trying to generate the .dll file using vcvars32.bat in visual studio 2017 it gives me an error

1条回答
  •  既然无缘
    2021-01-25 05:10

    After sometime of searching and failing I had to generate it by VS13 vsvars32.bat note that vsvars not VS17's vcvars that generated 32-bit dll and because my platform is 64-bit I had to install and switch to 32-bit JVM and problem is resolved.

    0 讨论(0)
提交回复
热议问题