2011年(10)
分类: LINUX
2011-07-26 20:53:52
在linux下写了个函数,用到了
原因:pow()函数是个c标准库函数,linux下gcc默认使用Gnuc,在编译时后面加上一个 -lm 链接到标准库即可,
通过man 函数名 时左上角显示的数字,便可判断此函数类型。
具体如下:
The manual is generally split into eight numbered sections, organized as follows (on BSD, Unix and Linux):
Section | Description |
---|---|
1 | General commands |
2 | System calls |
3 | C library functions |
4 | Special files (usually devices, those found in /dev) and drivers |
5 | File formats and conventions |
6 | Games and screensavers |
7 | Miscellanea |
8 | System administration commands and daemons |