|
Re: additional Infomation [message #147440 is a reply to message #147376] |
Fri, 24 June 2005 13:51 |
Eclipse User |
|
|
|
Originally posted by: plankton.softwitch.net
I am using lastest CYGWIN.
and I am using Eclipse 3.1Mrc3 and JDK 5.0(update4)
CDT and making C/C++ projects are fine.
But I cant using JNI.h and JNI_MD.H, compiler throw so many error with
that. I have to change my tools? anyone, help me :(
|
|
|
error log [message #147448 is a reply to message #147376] |
Fri, 24 June 2005 13:59 |
Eclipse User |
|
|
|
Originally posted by: plankton.softwitch.net
**** Incremental build of configuration Debug for project Hello ****
make -k all
Building file: ../main.cpp
Invoking: GCC C++ Compiler
g++ -IC:\Program Files\Java\jdk1.5.0_04\include -IC:\Program
Files\Java\jdk1.5.0_04\include\win32 -O0 -g3 -Wall -c -fmessage-length=0
-omain.o ../main.cpp
In file included from C:/Program Files/Java/jdk1.5.0_04/include/jni.h:27,
from ../main.cpp:2:
C:/Program Files/Java/jdk1.5.0_04/include/win32/jni_md.h:16: error:
`__int64' does not name a type
In file included from ../main.cpp:2:
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:108: error: `jlong' does
not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:307: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:308: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:308: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:308: error: ISO C++
forbids declaration of `CallLongMethod' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:308: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:309: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:310: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:310: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:310: error: ISO C++
forbids declaration of `CallLongMethodV' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:310: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:310: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:311: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:312: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:312: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:312: error: ISO C++
forbids declaration of `CallLongMethodA' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:312: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:312: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:389: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:390: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:390: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:390: error: ISO C++
forbids declaration of `CallNonvirtualLongMethod' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:390: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:390: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:391: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:393: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:393: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:393: error: ISO C++
forbids declaration of `CallNonvirtualLongMethodV' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:393: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:393: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:394: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:396: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:396: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:396: error: ISO C++
forbids declaration of `CallNonvirtualLongMethodA' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:396: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:396: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:440: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:441: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:441: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:441: error: ISO C++
forbids declaration of `GetLongField' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:441: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:441: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:460: error: `jlong' is
not a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:460: error: ISO C++
forbids declaration of `val' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:511: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:512: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:512: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:512: error: ISO C++
forbids declaration of `CallStaticLongMethod' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:512: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:512: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:513: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:514: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:514: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:514: error: ISO C++
forbids declaration of `CallStaticLongMethodV' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:514: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:514: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:515: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:516: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:516: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:516: error: ISO C++
forbids declaration of `CallStaticLongMethodA' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:516: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:516: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:553: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:554: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:554: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:554: error: ISO C++
forbids declaration of `GetStaticLongField' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:554: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:554: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:573: error: `jlong' is
not a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:573: error: ISO C++
forbids declaration of `value' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:635: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:635: error: expected `;'
before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:653: error: `jlong' is
not a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:653: error: ISO C++
forbids declaration of `elems' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:670: error: `jlong' is
not a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:670: error: ISO C++
forbids declaration of `buf' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:687: error: expected `,'
or `...' before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:687: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:731: error: `jlong' is
not a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:731: error: ISO C++
forbids declaration of `capacity' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:734: error: expected
identifier before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:735: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:735: error: `jlong'
declared as function returning a function
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:735: error: ISO C++
forbids declaration of `GetDirectBufferCapacity' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:735: warning:
`__stdcall__' attribute only applies to function types
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:735: error: `int
JNINativeInterface_::jlong(int*)' and `int
JNINativeInterface_::jlong(int*)' cannot be overloaded
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:968: error: `jlong' does
not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:976: error: `jlong' does
not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:980: error: `jlong' does
not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1160: error: `jlong'
does not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1170: error: `jlong'
does not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1175: error: `jlong'
does not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1268: error: `jlong'
does not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1302: error: `jlong' has
not been declared
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1302: error: ISO C++
forbids declaration of `val' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1427: error: `jlong'
does not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1436: error: `jlong'
does not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1440: error: `jlong'
does not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1518: error: `jlong'
does not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1553: error: `jlong' has
not been declared
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1553: error: ISO C++
forbids declaration of `value' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1647: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1647: error: expected
`;' before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1650: error: expected
`;' before "jfloat"
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1683: error: `jlong' has
not been declared
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1684: error: ISO C++
forbids declaration of `elems' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1719: error: `jlong' has
not been declared
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1719: error: ISO C++
forbids declaration of `buf' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1752: error: expected
`,' or `...' before '*' token
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1752: error: ISO C++
forbids declaration of `jlong' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1815: error: `jlong' has
not been declared
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1815: error: ISO C++
forbids declaration of `capacity' with no type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1821: error: `jlong'
does not name a type
C:/Program Files/Java/jdk1.5.0_04/include/jni.h: In member function
`void JNIEnv_::SetLongArrayRegion(_jlongArray*, jsize, jsize, int)':
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1753: error: `buf'
undeclared (first use this function)
C:/Program Files/Java/jdk1.5.0_04/include/jni.h:1753: error: (Each
undeclared identifier is reported only once for each function it appears
in.)
make: *** [main.o] Error 1
make: Target `all' not remade because of errors.
Build complete for project Hello
|
|
|
|
Powered by
FUDForum. Page generated in 0.03367 seconds