[gmx-developers] How to include <math.h> when Adding code in md.c
wangykoo at gmail.com
Tue Mar 29 10:19:27 CEST 2011
I add some code in the end of md.c, in which I called a function
"sqrt()", and at the start of md.c I add: #include <maths.h>.
As you know "sqrt()" is an often used function in the mathlib of C,
however, when I complie this code, system give an error:
md.c:3011: error: `squr' undeclared (first use in this function)
md.c:3011: error: (Each undeclared identifier is reported only once
md.c:3011: error: for each function it appears in.)
make: *** [md.o] Error 1
I guess I included a wrong mathlib headfile,is there anyone can tell me when
Gromacs itself need to extract a root which headfile was included?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gromacs.org_gmx-developers