使用WCDMA短信猫发送PDU格式中文短信,源程序make后出现如下错误:
[[email protected] 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
发送英文字符使用同样程序编译通过,短信发送成功。
请问这是怎么回事。
------解决方案--------------------
程序有问题,编译都没过。
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.)
贴源代码看看
------解决方案--------------------
这个楼主有关注 短信信息格式的设置吗?
也许你的设置还有问题,能支持字符,至于汉字,楼主好好看看,怎么用汉字的对应数码,来实现汉字的发送。