1
\$\begingroup\$
/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?

\$\endgroup\$

1 Answer 1

2
\$\begingroup\$

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

This was supposedly fixed in a newer version.

\$\endgroup\$

You must log in to answer this question.