Mail Archives: djgpp/1997/08/11/08:49:51
Hi Georgina...
> Since I am not the author of these codes, I would not like to debug
> them. So my question: Are there any general guidelines to treat
> FORTRAN codes in DJGPP? Has anyone seen the same problem, and got a
> solution?
>
Well, I use g77 for months on my workstation & my PC without special
problems.
It's also possible to mix C and Fortran code with djgpp as long as
the way of parameter passing between fortran & C is correct
(pointers only , hidden argument on characters, etc.).
If the problem is located within the fortran module, then
there are a lot of possible reasons for that error.
Try to compile your program with the option "-fno-automatic".
Some Fortran subroutines expect the local variables to be "SAVE"d
implicitely between two calls. Without this option, the value
of each local variable is undefined when the subroutine is
entered.
If this isn't the error, check the code for subscript-out-of-range
errors. To do this I would suggest you to compile the fortran
modules with f2c only, with the option "-C", and then use gcc.
If this all won't help you, consider to post the piece of code
that produces the error to this mailing-list/newsgroup.
Jens
- Raw text -