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

Where is C 'pow' function?

The following C program:

	#include <math.h>

	int main ()
	  double p = pow (2, 3);
	  return 0;

fails to link.  ld issues the following complaint:

	undefined reference to `pow'

Am I missing a library?  How can I search libraries to see which
library has a given function?

Reply to: