Link to C library

2014-06-19 Thread monnoroch via Digitalmars-d-learn
I can't link to libjvm.so. Here's my code: extern (C) { int JNI_CreateJavaVM(void ** pvm, void ** penv, void * args); } void main() { writefln(0x%x, .JNI_CreateJavaVM); } Which ptints wrong stuff. When then i use it and check the contents of **pvm is also prints wrong stuff

Re: Link to C library

2014-06-19 Thread monnoroch via Digitalmars-d-learn
Oh, found a problem, it was about one more layer of pointer indirection.