www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/07/00:57:23

Date: Thu, 7 Mar 1996 07:46:45 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Bill Galbraith <BILLG AT p3 DOT enzian DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: problem with output of real number in hexidecimal
In-Reply-To: <13C99F35171@P3.ENZIAN.COM>
Message-Id: <Pine.SUN.3.91.960307073801.27514D-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019