ythtBBS安装编译问题
2005-01-22 22:17
471 查看
出错程序:
int
frame_input(int pid)
{
printf("<script language=/"JavaScript/">
function r1() {
出错信息:
bbsnewchat.c:88:16: missing terminating " character
解决方法:
编译安装ythtBBS时,常遇到这样的错误提示。因为编译器对字符串的处理方式不
同,所以会出现以上的错误。解决的方法,是在出错行的字符串结尾加上“(分号
)。
因为
一般语句里面换行写没问题 比如
printf("12345"
"67890/n"); //输出1234567890,注意这里5后面的"和6前面的"号,上面出错
程序就是犯了这样的错误。
又比如
printf("123"
"456"
"789"
"/n");
#define的话要写在一行里面,或者用/,比如
#define ABC "12345" /
"67890"
bbsnewchat.c:294:36: warning: character constant too long for its type
bbsnewchat.c:294: error: stray '/300' in program
bbsnewchat.c:294: error: stray '/353' in program
bbsnewchat.c:294: error: stray '/277' in program
bbsnewchat.c:294: error: stray '/252' in program
bbsnewchat.c:294: error: stray '/262' in program
bbsnewchat.c:294: error: stray '/350' in program
bbsnewchat.c:294: error: stray '/271' in program
bbsnewchat.c:294: error: stray '/335' in program
bbsnewchat.c:295:19: warning: character constant too long for its type
bbsnewchat.c:295: error: stray '/301' in program
bbsnewchat.c:295: error: stray '/304' in program
bbsnewchat.c:295: error: stray '/314' in program
bbsnewchat.c:295: error: stray '/354' in program
bbsnewchat.c:295: error: stray '/312' in program
bbsnewchat.c:295: error: stray '/322' in program
bbsnewchat.c:295: error: stray '/260' in program
bbsnewchat.c:295: error: stray '/357' in program
bbsnewchat.c:295: error: stray '/326' in program
bbsnewchat.c:295: error: stray '/372' in program
出错信息里的/***(比如/372)是汉字,出错的原因是因为gcc版本的处理方式,
301是汉字,有的编译器字符串可以跨多行,有的编译器不行。上面的出错就是因
为编译器的版本问题。解决的方法是,在每行的后面加上一个 /(表示换行) 就可
以了。
待续
int
frame_input(int pid)
{
printf("<script language=/"JavaScript/">
function r1() {
出错信息:
bbsnewchat.c:88:16: missing terminating " character
解决方法:
编译安装ythtBBS时,常遇到这样的错误提示。因为编译器对字符串的处理方式不
同,所以会出现以上的错误。解决的方法,是在出错行的字符串结尾加上“(分号
)。
因为
一般语句里面换行写没问题 比如
printf("12345"
"67890/n"); //输出1234567890,注意这里5后面的"和6前面的"号,上面出错
程序就是犯了这样的错误。
又比如
printf("123"
"456"
"789"
"/n");
#define的话要写在一行里面,或者用/,比如
#define ABC "12345" /
"67890"
bbsnewchat.c:294:36: warning: character constant too long for its type
bbsnewchat.c:294: error: stray '/300' in program
bbsnewchat.c:294: error: stray '/353' in program
bbsnewchat.c:294: error: stray '/277' in program
bbsnewchat.c:294: error: stray '/252' in program
bbsnewchat.c:294: error: stray '/262' in program
bbsnewchat.c:294: error: stray '/350' in program
bbsnewchat.c:294: error: stray '/271' in program
bbsnewchat.c:294: error: stray '/335' in program
bbsnewchat.c:295:19: warning: character constant too long for its type
bbsnewchat.c:295: error: stray '/301' in program
bbsnewchat.c:295: error: stray '/304' in program
bbsnewchat.c:295: error: stray '/314' in program
bbsnewchat.c:295: error: stray '/354' in program
bbsnewchat.c:295: error: stray '/312' in program
bbsnewchat.c:295: error: stray '/322' in program
bbsnewchat.c:295: error: stray '/260' in program
bbsnewchat.c:295: error: stray '/357' in program
bbsnewchat.c:295: error: stray '/326' in program
bbsnewchat.c:295: error: stray '/372' in program
出错信息里的/***(比如/372)是汉字,出错的原因是因为gcc版本的处理方式,
301是汉字,有的编译器字符串可以跨多行,有的编译器不行。上面的出错就是因
为编译器的版本问题。解决的方法是,在每行的后面加上一个 /(表示换行) 就可
以了。
待续
相关文章推荐
- windows下安装python basemap时使用Visual Studio编译geos时遇到的问题以及解决方法
- android studio提高编译的速度,安装apk过慢问题解决
- CLAIMS 第三方安装包编译问题
- linux sqlite 安装编译问题
- 安装Vs2012后,编写Vc++程序找不到系统头文件和导致VS2010工程编译的问题
- DRBD编译安装中出现的问题及解决小结
- 编译安装 LNMP架构及遇到的问题
- 交叉编译工具的安装及问题解决
- 安装StartBBS 遇到的问题
- 虚拟机64位linux安装交叉编译工具链不成功问题
- Android问题-DelphiXE8安装后编译Android提示SDK无法更新问题(XE10也可以解决)
- json-c 编译安装 和 遇到的问题
- ubuntu 12.04安装qt5.4 编译程序cannot find -lGL问题
- 编译安装php容易出现的问题以及解决办法
- 关于在FC6中安装m68k-elf-tools交叉编译碰到的问题及解决方法
- 彻底解决RedHat8下的Kylix3安装使用的问题(安装、字体显示、bcb编译问题)
- php编译安装以及遇到的问题
- 彻底解决RedHat8下的Kylix3安装使用的问题(安装、字体显示、bcb编译问题)
- OpenC的问题,对安装,编译,动态库,链接顺序,运行环境,有界面程序的影响
- 解决在X64 RedHat5.1、centos、linux 下以编译方式安装PHP 出现的种种问题(转)