/usr/bin/ld: /tmp/ccywVCvu.o: undefined reference to symbol 'sqrt@@GLIBC_2.2.5'

If your code includes mathematical functions (like exp, cos, etc.), you need to link to the mathematics library libm.so. This is done, just like for serial compiling, by adding -lm to the end of your
相關文章
相關標籤/搜索