[Glade-users] Glade and math.h
- From: andrej.prsa at guest.arnes.si (Andrej Prsa)
- Subject: [Glade-users] Glade and math.h
- Date: Fri May 27 15:32:52 2005
Hi,
Everything is being calculated right, but at some point the result of
sin(teta_rad) is nan! I can't understand agian whats is going on. I've
took this code, and compile it separate (without the glade's makefile)
and the calculation was correct! Does someone have any idea of whats
happening????
You probably have -lm in your Makefile.am, right? Also, note that lrint
() is C99 standard, so you need to add -std=c99 to the Makefile.am
(prog_CFLAGS).
If everything else is ok, it should work. However, if you have a memory
issue somewhere else (e.g. improper dynamically allocated arrays),
arbitrary errors may jump out on you which don't necessarily reflect in
the actual source of the problem. To check this use valgrind or a
similar tool.
HTH,
Andrej
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]