Article View: borland.public.jbuilder.java.language
Article #19963Native Methods and Borland C++
From: Philippe Thiran
Date: Wed, 19 Nov 1997 00:00
Date: Wed, 19 Nov 1997 00:00
32 lines
1160 bytes
1160 bytes
Hi,
I have problem with native methods when I want to compile my C++ project
file. The header files <oobj.h> <jni.h> don't compile. The compile
errors look like :
(...)
typedef unsigned short unicode;
extern unicode *str2unicode(char *, unicode *, long);
extern char *int642CString(int64_t number, char *buf, int buflen);
<------ Error :'int64_t' cannot start
a parameter declaration
#define ALIGN(n) (((n)+3)&~3)
(...)
jint (JNICALL *Throw) <-----------------
Error : ) expected
(JNIEnv *env, jthrowable obj);
jint (JNICALL *ThrowNew)
(JNIEnv *env, jclass clazz, const char *msg);
(...)
Can someone help me to comile my C++ project ? (note : I use Borland
C++)
Technical Details
Message-ID:
<347305D7.6FD7AD8D@info.fundp.ac.be>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,bf469ddf9833b941,start X-Google-Attributes: gidf74b3,public From: Philippe Thiran <pth@info.fundp.ac.be> Subject: Native Methods and Borland C++ Date: 1997/11/19 Message-ID: <347305D7.6FD7AD8D@info.fundp.ac.be> X-Deja-AN: 290764917 X-Priority: 3 (Normal) Organization: University of Namur Newsgroups: borland.public.jbuilder.java.language