问题描述
我想有在Linux(Ubuntu的)蚀链接数学模块。
通常我会用gcc -lm链接。我如何获得日食补充呢?
它是下项目 - >属性库路径?哪里数学模块驻留在Linux操作系统Ubuntu系统上?
I am trying to have eclipse on linux (Ubuntu) link the math module.Normally I would link with gcc -lm. How do I get eclipse to add this?Is it in library paths under Project->Properties? Where does the math module reside on a linux Ubuntu system?
推荐答案
某处沿着这条路径:项目 - >属性 - > C / C ++建设 - >设置,然后在工具选项卡下:GCC连接器 - >库
Somewhere along this path: Project->Properties->C/C++ Build->Settings, then under the Tools tab: GCC Linker->Libraries
至于在那里它在系统中,通常/usr/lib/libm.so
As for where it is in the system, usually /usr/lib/libm.so.
仅供参考,这是我的系统的所有真实的,但可能会在你的略有不同的任何原因。应该不会很难,如果需要进行调整。
FYI, this is all true of my system, but may differ slightly on yours for any number of reasons. Shouldn't be hard to adjust if needed.
这篇关于Eclipse的C / C ++(CDT)添加-l选项(联数学模块)的gcc -lm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!