In function `main': test.c:(.text+0x4e): undefined reference to `pow' collect2: error: ld returned 1 exit status code example Example: c undefined reference to pow gcc filename -lm