int main(int argc,char **argv)
{
double value;
printf(""Value:%f "",value);
}
这个程序相当简单,但是当我们用 gcc -o temp temp.c 编译时会出现下面所示的错误.
/tmp/cc33Kydu.o: In function ``main´´:
/tmp/cc33Kydu.o(.text+0xe): undefined reference to ``log´´
collect2: ld returned 1 exit status