免费注册 查看新帖 |

Chinaunix

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

发送中文短信程序出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-12 17:10 |只看该作者 |倒序浏览
本帖最后由 thzhr2009 于 2010-03-12 17:18 编辑

使用WCDMA短信猫发送PDU格式中文短信,源程序make后出现如下错误:
[root@localhost linux_serial_sms]# make
arm-uclibc-linux-gcc -g -Wall -c send.c -o send.o
send.c: In function `signal_handler_IO':
send.c:764: warning: unused variable `end'
send.c: At top level:
send.c:833: warning: return type of 'main' is not `int'
send.c: In function `main':
send.c:857: error: syntax error before "int"
send.c:945: error: `i' undeclared (first use in this function)
send.c:945: error: (Each undeclared identifier is reported only once
send.c:945: error: for each function it appears in.)
send.c:962: warning: implicit declaration of function `exit'
send.c:840: warning: unused variable `ans'
send.c:859: warning: unused variable `flag'
make: *** [send.o] Error 1
发送英文字符使用同样程序编译通过,短信发送成功。
请问这是怎么回事。

论坛徽章:
0
2 [报告]
发表于 2010-03-13 10:21 |只看该作者
能把你的代码贴出来看看么
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP