I was learning JNI recently. I wrote a native method in a Java file, and got the header file after compiling the Java file with javah.exe. Then I wrote a .cpp file and compiled it to a .dll file with code::blocks. I ran the Java program but got an error: java error.
So I opened the .dll file using DLL Export Viewer, and found that the there was a "@8" suffix in function name. suffix @8. I thought this was the reason why my Java file could not run normally. So does anyone know how to remove the "@8" suffix in function name?