Eclipse 给我无效的参数 ' Candidates are: float atanf(float)' 即使参数有效

问题描述

这类似于

Eclipse giving me Invalid arguments ' Candidates are: void * memset(void *,int,?) ' though I know the args are good

这一行给出了错误

float y = atanf(x);

错误

Invalid arguments 'Candidates are:float atanf(float)'

I tried
1) enable provider "CDT GCC Built-in Compiler Settings [ Shared ]".
2) clean; reindex; build
3) rewrite code as
   float tan_arg = x;
   float y = atanf(tan_arg);

为了继续前进,我在该行禁用了检查参数,但我正在寻找更好的解决方案。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)