由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 多次遇到这种问题:previous declaration of .....
相关主题
file descriptorpthread_kill SIGINT SIG_DFL multithread
[转载] alarm, pause 又一问Perl Q
Does Linux support thread?async-signal safe 问题
A Unix questionSocket programming help
what is the difference between pthread and thr_ ?a perl question
does Linux has real time timer?Can I get the CPU-time of a thread?
multithread question[转载] 写程序 通讯 的 API (IPC )
which shell is the best among csh, ksh, bsh?[转载] Unix/Posix system programming training
相关话题的讨论汇总
话题: fmin话题: 函数话题: previous话题: cygwin
进入Unix版参与讨论
1 (共1页)
b****u
发帖数: 2
1
我在cygwin下想编译numerical recipe 里的程序,可是编译到一半显示错误:
/usr/include/math.h:147: previous declaration of 'fmin' .
发现是nr里的一个函数名和include 里 math.h 里的函数名冲突。标准c 里面没有fmin
这个函数,我不知道cygwin里的这个函数是什么标准里的。
以前安装别的程序也碰到过这样的名字冲突问题,到底怎么解决?谢谢了!
t*******r
发帖数: 22634
2
fmin() in math.h, POSIX, use #ifdef "mask" your own definition.

【在 b****u 的大作中提到】
: 我在cygwin下想编译numerical recipe 里的程序,可是编译到一半显示错误:
: /usr/include/math.h:147: previous declaration of 'fmin' .
: 发现是nr里的一个函数名和include 里 math.h 里的函数名冲突。标准c 里面没有fmin
: 这个函数,我不知道cygwin里的这个函数是什么标准里的。
: 以前安装别的程序也碰到过这样的名字冲突问题,到底怎么解决?谢谢了!

1 (共1页)
进入Unix版参与讨论
相关主题
[转载] Unix/Posix system programming trainingwhat is the difference between pthread and thr_ ?
how to check disk available using posix API?does Linux has real time timer?
Semaphores in Linux (转载)multithread question
若问aix系统可以在普通的非ibm机器上装吗?which shell is the best among csh, ksh, bsh?
file descriptorpthread_kill SIGINT SIG_DFL multithread
[转载] alarm, pause 又一问Perl Q
Does Linux support thread?async-signal safe 问题
A Unix questionSocket programming help
相关话题的讨论汇总
话题: fmin话题: 函数话题: previous话题: cygwin