Ves*_*nog 2 c math exponential
我正在尝试使用函数exp1和log101,它将长双精度作为输入并依次输出长双精度.但是,当我尝试编译该文件时,我收到以下错误消息:
/tmp/ccIvBVbG.o: In function `main':
derivative.c:(.text+0x250): undefined reference to `log101'
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)
我已经包含math.h库并且还提供了-lm选项.这个问题的补救措施是什么?任何帮助和评论表示赞赏.
谢谢
PS Compiler是32位Ubuntu 12.04 LTS上的GCC