java-interop

Convert static windows library to dll

元气小坏坏 提交于 2019-11-27 14:07:32
I have a library contains a bunch of static *lib files, I wish to access them from JNA (a Java library that allows one to dynamically call `dll's from JAVA Code), so is there a way to magically change static lib to dll? Code was compiled using Visual studio (hope that is relevant), and I also have appropriate header files. I do not have access to source code, also I would like to do it using only free (as in beer) tools. I'm not aware of anyb tools that will do this automatically, but the process is to create a DLL project and add your libraries to the project. For each function in the header

What's the intended use of @JvmSynthetic in Kotlin?

心不动则不痛 提交于 2019-11-27 07:35:15
问题 I have come across the @JvmSynthetic annotation in kotlin-stdlib, and I'm wondering what it is for, but, unfortunately, it is undocumented. (UPD: it was at that moment) As far as I understand, applying it to a program element will add the synthetic modifier to the corresponding bytecode elements. As a consequence, the element becomes invisible from Java: class MyClass { @JvmSynthetic fun f() { } } Somewhere in Java code: MyClass c = new MyClass(); c.f() // Error: cannot resolve method f() But

Convert static windows library to dll

假装没事ソ 提交于 2019-11-26 16:36:07
问题 I have a library contains a bunch of static *lib files, I wish to access them from JNA (a Java library that allows one to dynamically call `dll's from JAVA Code), so is there a way to magically change static lib to dll? Code was compiled using Visual studio (hope that is relevant), and I also have appropriate header files. I do not have access to source code, also I would like to do it using only free (as in beer) tools. 回答1: I'm not aware of anyb tools that will do this automatically, but