Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JNI libraries problem

Reply
Thread Tools

JNI libraries problem

 
 
Marcelo
Guest
Posts: n/a
 
      01-22-2006
Hi everybody,

I am getting a big compilation problem with this g++ command:

>> g++ -Id:\jdk1.5.0_05\include -Id:\jdk1.5.0_05\include\win32

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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JNI thread vs. native thread vs. JNI call bgabrhelik Java 0 09-29-2009 03:33 PM
Re: JNI: Error loading DLL from JNI DDL vasanth Java 0 01-25-2005 11:03 AM
Re: JNI: Error loading DLL from JNI DDL vasanth Java 0 01-25-2005 11:01 AM
Porting JNI Windows under JNI LINUX + Wine ? Pasturel Jean-Louis Java 5 03-03-2004 07:50 PM
IBM's JNI fails where Sun's JNI works Alex Hunsley Java 4 11-04-2003 10:34 AM



Advertisments