Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Compilation error on MacOS and solution #190

Open
huayue21 opened this issue Dec 28, 2020 · 0 comments
Open

Compilation error on MacOS and solution #190

huayue21 opened this issue Dec 28, 2020 · 0 comments

Comments

@huayue21
Copy link

Compilation error:
src/main/c/jni/org_jpy_PyLib.c

I compiled on Mac and gcc standard c99 reports error. So I put a line of declaration of
void JPy_free(void* unused);
in the file src/main/c/jni/org_jpy_PyLib.c
and this results further error since the calling on line 333 is
JPy_free();
does not comply with the form of the declaration.
I then change it to
JPy_free(NULL);
and it works for me.

Not sure what happens on Windows 10 and other compilers.

@huayue21 huayue21 changed the title Compilation error on MacOS Compilation error on MacOS and solution Dec 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant