c++ - What is this error message?
- vebveb (31/31) Mar 20 2010 Hello,
Hello,
I would like to understand these error messages:
I test 2 function to calculate sin:
when I print:
printf ("%f", sin(PI)) //sin is the sin function I test
the first print this message:
-arena trashed
and the second
-L pointer (next the program has some bug) //with the sinf of 'single' of the
Cephes Mathematical Library.
I use them (and not the digital mars function that I'm sure has no bug)
because when the sin function of Digital mars is too big for my small exe (not
enough place)
I could make something like:
if( (x==PI) || (x==-PI) )
{
return(0.0);
}
but I would have the bug with sin(3PI) or sin(21PI)
Do you know what these errors are? And how get round these errors?
Thank you very Much.
[REPLY to "MANIPULATE .LIB or .OBJ]
Thnaks for your answer.
This code take only 1 bytes, and I have no problem:
_TEXT SEGMENT PARA PUBLIC 'CODE'
assume cs:_TEXT, ds:nothing, ss:nothing
public FDIV_R
FDIV_R proc near
ret
FDIV_R endp
_TEXT ENDS
Mar 20 2010








vebveb <vebveb hotmail.fr>