JNI libraries problem

Discussion in 'Java' started by Marcelo, Jan 22, 2006.

  1. Marcelo

    Marcelo Guest

    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
     
    Marcelo, Jan 22, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Hunsley

    IBM's JNI fails where Sun's JNI works

    Alex Hunsley, Nov 3, 2003, in forum: Java
    Replies:
    4
    Views:
    852
    Alex Hunsley
    Nov 4, 2003
  2. Pasturel Jean-Louis

    Porting JNI Windows under JNI LINUX + Wine ?

    Pasturel Jean-Louis, Feb 29, 2004, in forum: Java
    Replies:
    5
    Views:
    909
    Pasturel Jean-Louis
    Mar 3, 2004
  3. vasanth
    Replies:
    0
    Views:
    2,707
    vasanth
    Jan 25, 2005
  4. vasanth
    Replies:
    0
    Views:
    624
    vasanth
    Jan 25, 2005
  5. bgabrhelik
    Replies:
    0
    Views:
    828
    bgabrhelik
    Sep 29, 2009
Loading...

Share This Page