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++后不报错了。我的工程本...
原创
2018-11-10 21:42:32 ·
5882 阅读 ·
0 评论