vs2005中error C3861 ????

xthwmf 2007-12-09 01:18:42
小弟把一些C代码放到vs2005中编译,都是报错,请大家帮我看看:
1>正在编译...
1>AutoFit.cpp
1>e:\regress\autofit.cpp(86) : error C3861: “error”: 找不到标识符
1>Regress.cpp
1>e:\regress\regress.cpp(55) : error C3861: “error”: 找不到标识符
1>e:\regress\regress.cpp(83) : error C3861: “error”: 找不到标识符
1>RegressAnalysis.cpp
1>RegressKinship.cpp
1>RegressParameters.cpp
1>e:\regress\regressparameters.cpp(171) : error C3861: “error”: 找不到标识符
1>e:\regress\regressparameters.cpp(174) : error C3861: “error”: 找不到标识符
1>e:\regress\regressparameters.cpp(177) : error C3861: “error”: 找不到标识符
1>e:\regress\regressparameters.cpp(180) : error C3861: “error”: 找不到标识符
...全文
1168 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
aaarourouaaa 2011-07-03
  • 打赏
  • 举报
回复
应该说说的啊,很多人都碰到这个情况了。谢谢楼主
硅步万里 2010-07-30
  • 打赏
  • 举报
回复
靠,你解决了就说说,给大家分享下啊
xthwmf 2007-12-09
  • 打赏
  • 举报
回复
我自己解决了
还是谢谢 大家……
见者有份
都给分了
jixingzhong 2007-12-09
  • 打赏
  • 举报
回复
不曾使用这个 error() 我猜就是自定义的一个函数吧?

请包含必要的头文件,
工程中添加必要的实现文件
yxwsbobo 2007-12-09
  • 打赏
  • 举报
回复
JF
yxwsbobo 2007-12-09
  • 打赏
  • 举报
回复
JF
zhangyanli 2007-12-09
  • 打赏
  • 举报
回复
你的error是什么东西,是不是少了头文件了

你检查一下,很可能是丢了头文件了。
jixingzhong 2007-12-09
  • 打赏
  • 举报
回复
error() ?? 自定义的么?
xthwmf 2007-12-09
  • 打赏
  • 举报
回复
e:\regress\autofit.cpp(86) : error C3861: “error”: 找不到标识符(这个错误的代码如下:)

代码:……
for (int f = 0; f < ped.familyCount; f++)
{
pheno[f].Dimension(0);
for (int i = ped.families[f]->first; i <= ped.families[f]->last; i++)
if (ped[i].isPhenotyped(t) && (!useCovariates || ped[i].isFullyControlled()))
{
pheno[f].Push(i);

if (!useProbands) continue;
if (ped[i].pid.SlowCompare("proband") == 0 ||
probandStatus != -1 && ped[i].affections[probandStatus] == 2)
if (probands[f] == -1)
probands[f] = i;
else
error("There are multiple probands in family %s\n\n" //错误之处
"Currently, only a simple correction for single\n"
"ascertainment is supported.\n",
(const char *) ped.families[f]->famid);
}
}

24,860

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧