static declaration of 'find_max_fdj_log' follows non-static declaration

ttt138 2010-06-22 12:06:27
static int find_max_fdj_log (int *sxh_max)
{
int i_sxh = 0;
int i_rect = -1;
i_rect = wj_lock_operation_nowait("fdj_tscl_log");
if( -54 == i_rect ) {
wjupt_err_print("发动机特殊处理日志功能正在被其他用户使用!请稍候再试!");
return ERR;
}
if( ERR == i_rect ) {
return ERR;
}

EXEC SQL SELECT MAX(sxh)
INTO :i_sxh
FROM fdj_tscl_log;
if( sqlca.sqlcode != 0 ){
wjdbupt_db_op_fail("select max sxh fail ...");
return ERR;
}
*sxh_max = i_sxh;
return OK;
}

int insert_fdj_log(const char *pc_fdjh,const char *bz,const int czlx)
{
if ( ERR == find_max_fdj_log ( &i_max_sxh ) ){
return ERR;
}
}

错误信息static declaration of 'find_max_fdj_log' follows non-static declaration,怎么改

...全文
1075 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
linux_follower 2012-07-31
  • 打赏
  • 举报
回复
怎么解决的。。
xscl24 2012-06-25
  • 打赏
  • 举报
回复
声明了,还是出现这个问题。
DangYongXing 2011-10-18
  • 打赏
  • 举报
回复
楼主怎么解决的??急求
mrdone 2011-08-03
  • 打赏
  • 举报
回复
学习了。 遇到同样的问题。
ttt138 2010-06-22
  • 打赏
  • 举报
回复
已解决,c语言调用必须先声明后调用
cattycat 2010-06-22
  • 打赏
  • 举报
回复
那就接分了。
yidasoft 2010-06-22
  • 打赏
  • 举报
回复
我来了~…
zjf30366 2010-06-22
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 ttt138 的回复:]

已解决,c语言调用必须先声明后调用
[/Quote]楼主记得结贴啊。。。
benbshmily 2010-06-22
  • 打赏
  • 举报
回复
恭喜楼主解决问题...

69,372

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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