I thought the pow() function in math.h was a given. But I'm surprised the compiler doesn't recognize it in my program even though I included the math.h library.
I'm using gcc in Mandrake Linux. Has anyone else had this problem?
I thought the pow() function in math.h was a given. But I'm surprised the compiler doesn't recognize it in my program even though I included the math.h library.
I'm using gcc in Mandrake Linux. Has anyone else had this problem?
Did you link with the library (-lm [dash ell em])?
Learn to distinguish complier and linker errors.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*