On Fri, 22 Mar 2024 13:38:54 GMT, Robbin Ehn <r...@openjdk.org> wrote:
> > > is this how you want us to export these symbols? > > > > > > Close but no cigar. :-) > > Use `JNIEXPORT` instead, that is properly defined for this purpose and > > works on all compilers. You will need to also add: > > ``` > > #include "jni.h" > > ``` > > > > If this is not picked up correctly, let me know and I'll help you get the > > include paths correctly in the build. > > It's stand alone library, should we really make it dependent on the JDK? No. And neither should we compile or link it with "-fvisibility=hidden". That is the root of this problem. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18400#issuecomment-2016427942