免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1133 | 回复: 1
打印 上一主题 下一主题

g++ 编译错误 请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-05-11 18:37 |只看该作者 |倒序浏览
g++   -g -DHAVE_CONFIG_H -I/usr/include/mysql -I. -D__cplusplus -D_REENTRANT -D_
_JAVACLIENT__ -D_THREAD_SAFE -pthread -c  -fPIC -DPIC  -I/usr/include -static -p
thread     -o login1.o -c login1.cpp
login1.cpp: In function `int main(int, char **)':
login1.cpp:104: warning: default argument of negative value `-1' to `long unsign
ed int'
login1.cpp:110: warning: default argument of negative value `-1' to `long unsign
ed int'
login1.cpp: In function `class YString comm39(const class YString &, const class
YString &, const class YString &, const class YString & = ""':
login1.cpp:912: warning: initialization to `char *' from `const char *' discards
const
login1.cpp:913: warning: passing `char *' as argument 1 of `URLDecode(unsigned c
har *)' changes signedness
login1.cpp:955: warning: passing `const YString' as `this' argument of `class YS
tring & YString:perator =(const class YString &' discards const
login1.cpp:956: warning: passing `const YString' as `this' argument of `class YS
tring & YString:perator =(const class YString &' discards const
make: *** [login1.o] Error 1

这段错误是什么意思
为什么会出现
value `-1' to `long unsigned int'


相关代码
          //g_applog->;write("[main]write "+loginMessage+" to "+fifoLoginMessage.getName());
          if(fifoLoginMessage.write(loginMessage)!=0)
                  {
             YErr::show(g_err.ErrDescription);
             PrintErrorMessagePage("[40001]内部错误。";
             return -1;
          }


还有就是 g++2.91 和2.95的 容错是不是有差别?
在2.91上虽然提示有错但仍可通过
2.95上就终止了继续编译
qunying 该用户已被删除
2 [报告]
发表于 2005-05-12 00:45 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP