Q:

How to remove "@8" suffix in dll file

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? 

A:

If you compile with GCC, simply provide --kill-at and your problem will go way. For MSVC, se here.

