关于math.h的问题
发表于 : 2006-03-15 19:07
编了个程序,并#include <math.h>。但是gcc filename时却出现如下信息:
Complex.cc:(.text+0x10f): undefined reference to `sqrt'
Complex.cc:(.text+0x264): undefined reference to `sin'
Complex.cc:(.text+0x2a9): undefined reference to `cos'
Complex.cc:(.text+0x910): undefined reference to `log'
Complex.cc:(.text+0x933): undefined reference to `exp'
已用sudo apt-get install gcc升到最高。请问这是怎么回事啊?
Complex.cc:(.text+0x10f): undefined reference to `sqrt'
Complex.cc:(.text+0x264): undefined reference to `sin'
Complex.cc:(.text+0x2a9): undefined reference to `cos'
Complex.cc:(.text+0x910): undefined reference to `log'
Complex.cc:(.text+0x933): undefined reference to `exp'
已用sudo apt-get install gcc升到最高。请问这是怎么回事啊?