Mail Archives: djgpp/1994/03/14/11:04:13
I am trying to run a C program compiled with the
DOS djgpp compiler gcc-2.2.2.
Whenever I call any of the functions in math.h (log(), sqrt()...),
I get the error:
Segmentation violation in pointer 0x00000004 at 40:b0003264
Exception 14 at eip=b0003264
My computer does not have a 387 coprocessor; instead, I am using
the 387 emulator emu387. A line from my autoexec file is
set GO32=emu c:/djgpp/emu387/emu387
I always #include <math.h> when trying to call the math functions,
and always use the -lm compiler switch.
Are there any other clues I need to use functions from libm.a with
the EMU387?
I greatly appreciate people's help.
Martin Young
University of Michigan School of Business
- Raw text -