hello again,
in the process of getting viptos started, i
realized that i have some problem in JNI. the
first error that i get is: "jni.h: no such file
or directory". i  tried to run a jni demo 
included in pt package and this is what i'm
getting. 
i'll appreciate your kind help:
[EMAIL PROTECTED]:/usr/PTII/jni/demo/HelloWorld$ make
/usr/bin/gcc -shared \
                  \
                "-I/usr/include" \
                "-I/usr/include/linux" \
                -o libHelloWorld.so \
                HelloWorld.c
In file included from
/usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from HelloWorld.c:2:
/usr/include/gconv.h:72: error: expected
declaration specifiers or ‘...’ before ‘size_t’
/usr/include/gconv.h:88: error: expected
declaration specifiers or ‘...’ before ‘size_t’
/usr/include/gconv.h:97: error: expected
declaration specifiers or ‘...’ before ‘size_t’
/usr/include/gconv.h:174: error: expected
specifier-qualifier-list before ‘size_t’
In file included from /usr/include/stdio.h:72,
                 from HelloWorld.c:2:
/usr/include/libio.h:328: error: expected
specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:360: error: expected
declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:369: error: expected
declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:485: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘_IO_sgetn’
In file included from HelloWorld.c:2:
/usr/include/stdio.h:306: error: expected
declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:313: error: expected
declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:355: error: expected
declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:357: error: format string
argument not a string type
/usr/include/stdio.h:359: error: expected
declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:608: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
/usr/include/stdio.h:614: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘fwrite’
/usr/include/stdio.h:636: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘fread_unlocked’
/usr/include/stdio.h:638: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘fwrite_unlocked’
In file included from HelloWorld.c:4:
HelloWorld.h:2:17: error: jni.h: No such file or
directory
In file included from HelloWorld.c:4:
HelloWorld.h:15: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘void’
HelloWorld.c:6: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘void’
make: *** [libHelloWorld.so] Error 1

[EMAIL PROTECTED]:/usr/PTII/jni/demo/HelloWorld$ ls
HelloWorld.c  HelloWorld.class  HelloWorld.h 
HelloWorld.java    makefile

thanks
wahid



      
____________________________________________________________________________________
Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to