一个简单的数学库问题? [英] A simple math libary problem?
本文介绍了一个简单的数学库问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试添加pow时和exp在我的c程序中运行
IRIX6.5并编译并链接它,我得到两个错误:
未解析的文本符号pow,
未解决的文本符号exp。
为什么会这样?我应该链接数学库吗?什么是
命令?
非常感谢提前。
When I try to add the "pow" and "exp" function in my c program under
IRIX6.5 and complie and link it,I get two errors:
Unresolved text symbol "pow",
Unresolved text symbol "exp".
Why is that?Should I link the mathematical library?What is the
command?
Many thanks in advance.
推荐答案
在大多数unix框中,它是-lm链接数学库。 />
Freefish写道:
On most unix boxes it is -lm to link the math lib.
Freefish wrote:
当我尝试添加pow时和exp在我的c程序中使用
IRIX6.5并编译并链接它,我得到两个错误:
未解析的文本符号pow,
未解析的文本符号exp。
为什么会这样?我应该链接数学库吗?什么是
命令?
非常感谢提前。
When I try to add the "pow" and "exp" function in my c program under
IRIX6.5 and complie and link it,I get two errors:
Unresolved text symbol "pow",
Unresolved text symbol "exp".
Why is that?Should I link the mathematical library?What is the
command?
Many thanks in advance.
>
wa****@igsnrr.ac.cn (Freefish)在消息新闻中写道:< b8 ************************** @ posting.google。 com> ...
wa****@igsnrr.ac.cn (Freefish) wrote in message news:<b8**************************@posting.google. com>...
当我尝试添加pow时和exp在我的c程序中使用
IRIX6.5并编译并链接它,我得到两个错误:
未解析的文本符号pow,
未解析的文本符号exp。
为什么会这样?我应该链接数学库吗?什么是
命令?
非常感谢提前。
When I try to add the "pow" and "exp" function in my c program under
IRIX6.5 and complie and link it,I get two errors:
Unresolved text symbol "pow",
Unresolved text symbol "exp".
Why is that?Should I link the mathematical library?What is the
command?
Many thanks in advance.
>
我认为你应该包含文件< math.c>。
I think you should include the file <math.c>.
wa **** @ igsnrr.ac.cn (Freefish)在留言中写道:< b8 ******************** ******@posting.google。 com> ...
wa****@igsnrr.ac.cn (Freefish) wrote in message news:<b8**************************@posting.google. com>...
当我尝试添加pow时和exp在我的c程序中使用
IRIX6.5并编译并链接它,我得到两个错误:
未解析的文本符号pow,
未解析的文本符号exp。
为什么会这样?我应该链接数学库吗?什么是
命令?
非常感谢提前。
When I try to add the "pow" and "exp" function in my c program under
IRIX6.5 and complie and link it,I get two errors:
Unresolved text symbol "pow",
Unresolved text symbol "exp".
Why is that?Should I link the mathematical library?What is the
command?
Many thanks in advance.
>
我认为你应该包含文件< math.c> ;.
I think you should include the file <math.c>.
这篇关于一个简单的数学库问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文