/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?

| improve this question | | | | |

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

This was supposedly fixed in a newer version.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy