All pastes #166579 Raw Edit

Untitled

public text v1 · immutable
·published 2006-09-11 01:23 UTC
rendered paste body
gcc -Wall -o pow attempt.c of:

#include <stdio.h>
#include <math.h>

int main(void)
{
	double base = 2, power = 3;
	
	printf("\n 2^3 = %f\n", pow(base, power));

	return 0;
}

gives

/tmp/ccUYHZeh.o: In function `main':
attempt.c:(.text+0x3c): undefined reference to `pow'
collect2: ld returned 1 exit status