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. Advertisements

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:
    1,093
    Alex Hunsley
    Nov 4, 2003
  2. Alex Hunsley
    Replies:
    4
    Views:
    1,125
    Alex Hunsley
    Nov 14, 2003
  3. Pasturel Jean-Louis

    Porting JNI Windows under JNI LINUX + Wine ?

    Pasturel Jean-Louis, Feb 29, 2004, in forum: Java
    Replies:
    5
    Views:
    1,184
    Pasturel Jean-Louis
    Mar 3, 2004
  4. vasanth
    Replies:
    0
    Views:
    3,234
    vasanth
    Jan 25, 2005
  5. Marcelo

    JAR, JNI and libraries

    Marcelo, Sep 30, 2005, in forum: Java
    Replies:
    2
    Views:
    3,467
    Roedy Green
    Sep 30, 2005
  6. Replies:
    16
    Views:
    1,161
    Chris Uppal
    Apr 6, 2006
  7. Krystian
    Replies:
    6
    Views:
    3,618
    Krystian
    Nov 17, 2006
  8. bgabrhelik
    Replies:
    0
    Views:
    1,152
    bgabrhelik
    Sep 29, 2009
Loading...