Is there a Visual C ++ equivalent for gcc -kill-at?

Namely, the DLL name has an extra @ 8 at the end, which causes problems. Apparently using the -kill-at flag in gcc would allow this, but I can't find any similar suggestions for MSVC.

EDIT: A bit more info:

I am trying to get the C ++ JNI dll to work, but I constantly get an exception in the thread-0 thread java.lang.UnsatisfiedLinkError: eveTimers.PollThread.checkKeyboardChanges () V back instead of the current program. I used quickview to look at the dll and found that it is decorated with @ 8, which offers http://www.velocityreviews.com/forums/t143642-jni-unsatisfied-link-error-but-the-method-name-is -correct.html . Help would be greatly appreciated.

+3
source share
1 answer

[Edited as inappropriate, for the comment below].

Another approach is to specify export names in a .DEF file .

Your calling and linking arrangements may also affect this. . Honestly, this is a little black art. Use MSVC for a dozen years, and you will still sometimes encounter nasty problems with names that should be easy to fix but not trivial to actually fix, given how different settings interact.

+1
source

Source: https://habr.com/ru/post/1737771/


All Articles