Mail Archives: djgpp/1996/03/07/00:57:23
On Wed, 6 Mar 1996, Bill Galbraith wrote:
> I don't speak C very well, and I use DJGPP with the Fortran-to-C
> converter F2C. I am having trouble converting a program which
> executes under DJGPP v1m4 but encounters a problem under DJGPP v2.0 .
This problem could have something to do with the C library which in v2.0
is totally different. Can you please debug into the library functions
used by the generated C code s_wsfe(), do_fio() and e_wsfe() and see which
one of them fails, and what functions from the C library it uses before
it fails?
I understand that the library libf2c.a was recompiled with DJGPP v2.0
before linking your program, right? If not, you must recompile it,
because v1.x libraries and v2.0 programs don't mix.
Another thing to try is to link without -lm (libc.a now has the math
functions required by ANSI/POSIX, so you don't always need -lm, but the
implementation of these functions is different in these two libraries).
Btw, is there any public site where one could get f2c for DJGPP v2.0
(that's for the FAQ)?
- Raw text -