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,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top