nick wrote:
Hi!
I'm trying to use some old Pascal modules in Java through JNI.
- Is there any way of using Pascal directly or should I use it through C?
AFAIK javah always generates C headers, so you won't be able to connect Pascal functions to the JNI without an intermediate C layer.
- How should I create the mixed shared library (i.e. library containing C and Pascal objects)
Just statically build them together. (See attached example -- You'll have to edit the "makethis" file and change the paths in there, since they refer to my own directory structure.)
- What version of GPC and GCC is it prefferable to use?
Can't give you an exact recommendation, but I don't know of any problems when using the most recent version. However, it worked well, too, with GCC 2.9.5 and some GPC version back from 2001.
Best,
Markus