Ubuntu Uundefined reference to symbol 'pow@@GLIBC_2.2.5'

今天建了一個工程,make後,報錯 /usr/bin/ld: Caculator/Calculator.o: undefined reference to symbol 'pow@@GLIBC_2.2.5' 由於使用了mathematical functions,一開始我是在makefile裏添加了-lm,可是仍報錯,後來檢查發現我用的是gcc,因而我把$(CC)改爲g++後不報錯了。個人工程原本
相關文章
相關標籤/搜索