JNI libraries problem

M

Marcelo

Hi everybody,

I am getting a big compilation problem with this g++ command:
HelloWorld.cpp -o HelloWorld.dll

This gives me a compilation error like this


In file included from d:\\jdk1.5.0_05\\include\\jni.h:27,
from HelloWorld.cpp:1:
d:\\jdk1.5.0_05\\include\\win32\\jni_md.h:16: syntax error before `;'
In file included from HelloWorld.cpp:1:
d:\\jdk1.5.0_05\\include\\jni.h:108: syntax error before `;'
d:\\jdk1.5.0_05\\include\\jni.h:307: warning: `__stdcall__' attribute
ignored
d:\\jdk1.5.0_05\\include\\jni.h:308: `jlong' declared as function
returning a fu
nction

....etc...

The program is the HelloWorld.java explained in the Java Tutorial, the
compilator is g++ and the OS is Windows.

Do you have any idea about this problem?

thanks a lot,

Marcelo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top