# Why do I get these weird errors when using pow() for my game?

/usr/bin/ld: /tmp/ccfm5eKc.o: undefined reference to symbol 'pow@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


I get this error when trying to use pow(). Why?

According to this, you need to add -lm to the flags.