Untitled
public text v1 · immutablegcc -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