Mail Archives: djgpp/1996/03/21/10:11:49
On 20 Mar 1996, Wolfgang Winkler wrote:
> Can anybody tell me: Is there any workaround or do I have to use djgpp V1
> instead? Is it possible just to replace the math-library of V2 by that of V1?
Try linking without -lm switch. That will cause gcc to only scan the
standard libc.a which in v2.0 includes the code to all ANSI C math
functions compiled from the sources very close to what in v1.x was in
libm.a. (In v2.0, libm.a was compiled from an entirely different
sources.)
If that doesn't help, you can either set the x87 to not generate FP
exceptions (use the `_control87' library function) or install your own
signal handler for those exceptions (with `signal' library function).
- Raw text -