Hello Olivier,

Either:

1) use the unix utility f2c to convert the fortran to C. Some Fortran
compilers actually convert to C as a first step of compilation anyway, so it
wouldn't be a big problem; or

2) You need a C wrapper to call the Fortran. Basically, compile the Fortran
and C separately ( i.e. gcc -c -o Coutfile.o Cinfile.c  && f90 -c -o
Foutfile.o Finfile.f90 ). Then link the Fortran and C into a shared library.
For this you can use either compiler, or a separate linker (i.e. in linux
use ld, etc). I used F90, so an example is:  f90 -o libsharedObject.so
-X-shared Coutfile.o Foutfile.o. These are linux compilations.


        I have been at this for about a week and have no troubles with basic
data types. I have found difficulty in passing arrays as arguments to
subroutines, however. I would like to keep in touch and trade ideas if
possible. Please feel free to email me directly.


-----Original Message-----
From: Olivier Antibi [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 19, 2000 6:44 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Always Satellite Animation


    Hello guys,

    Thanks for your answers, but I should have first included the url I own
on both satellites and Jni fortran:

   -Satellites:
http://www.astro.queensu.ca/~musgrave/cforce/index.html
http://www.vmeng.com/minow/sunsphere/SunSphereInfo.html#Source
only 2D but intersting to see orbits and so on free source code.

    - JNI with fortran
obvoiusly java tutorials, good for C / C++ imlementations but not enough for
Fortran. I'm looking for the way to make shared library with f77 or f90, I
tried several things such as "-shared / -G -O ...." but it seems we have to
interface it again with a C program ... and this I don't know how to
 external ?? )

forum :
http://forum.java.sun.com/forum?[EMAIL PROTECTED]^[email protected]

good infos and free samples even in Fortran but can't make the fortarn
version work, no problem with C:
http://www.math.ucla.edu/~anderson/JAVAclass/JavaInterface/JavaInterface.htm
l


Does anyone know if there is a special mailing list to speak about JNI ??
______________________________________________

Olivier ANTIBI
ENSEEIHT Engineer
Computer Science & Computational Fluid Dynamics
8, rue de Vendine
31200 Toulouse
FRANCE
T�l: 06-11-53-88-32
or   05-61-11-99-68
_________________________________________________

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to