This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: java and C++


Hi!

Friday, 18 May, 2001 Tucker Maney maney@aic.nrl.navy.mil wrote:

TM> I would like to be able to run C code from Java.  I've done this under
TM> Solaris with no problems, but now I'm using cygwin gcc under Windows 2000.
TM> I thought i'd start with the simple example on the Java Sun webpage.
TM> Get stuck making the dll.  Mail errors have to do with jlong in the jni.h
TM> file.  Have put copies of all files, etc, in attachment.

run gcc with '-v' and '--save-temps' options.

this will show what preprocessor's doing with your sources and why.
most probable reason is that <jni.h>, which your probram #includes is
not supposed to be compiled with gcc.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]