Re: About math function



On 1/19/06, Demon Zhu <demon ovt com cn> wrote:
Hello everyone,
 
Although i have used  #include <math.h>, cc compiler
reports 'redundant redeclaration' and 'undefined
reference to round'.
 
Which header file should be included to using math function?
 
 
It's not a question of gnome, but i have no other mailist.Sorry 

Hi,
Read 'man round'. It says that round() conforms to C99, so you have to pass '-std=c99' as an option to gcc.

Olexiy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]