ChinaUnix.net
相关文章推荐:

linux 错误 expected primaryexpression before ‘’ token

今天写了一个程序,编译时报了一个错误:expected initializer before "***" 报错的语句只是程序开头的一个变量定义语句,怎么会有这样的错误呢,琢磨了半天也没弄明白,最后发现是自己写的头文件最后一句少了 “;”。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/78601/showart_1722297.html

by sparkzh - Linux文档专区 - 2008-12-15 23:13:43 阅读(1015) 回复(0)

相关讨论

error: expected `,' or `...' before numeric constant是什么错误啊???

by ecjtubaowp - Linux环境编程 - 2008-08-27 13:00:12 阅读(7317) 回复(4)

本帖最后由 jinyuliang 于 2010-05-21 22:06 编辑 纯学习目的,我给 Apache 注册了一个新的信号,现在在编写信号处理程序,编译时出现这样的错误: [code]gcc -c -I../os/unix -I../include -Dlinux=2 -DUSE_HSREGEX `../apaci` http_main.c In file included from http_main.c:129: ../include/http_online_modification.h:57: 错误expected ‘;’, ‘,’ or ‘)’ before ‘.’ token make[3]: *** [http_main.o] 错误 ...

by jinyuliang - C/C++ - 2010-05-21 22:02:58 阅读(2525) 回复(6)

if ! [ -f /home/portal/test1 ] then echo "file not exist!" exit 1 fi 执行这条语句出现如下错误,请各位童鞋帮忙。。。。。。 ./test1: line 5: syntax error near unexpected token `fi' ./test1: line 5: `fi'

by Ethan_Fu - Linux环境编程 - 2012-02-20 10:48:03 阅读(11068) 回复(7)

请教: linux (rhel5) ls -l dufile*(.c|.o) 出现near unexpected token 错误? 我用的shell 是bash,bash 是支持扩展模式吧,是哪里出错? 谢谢!

by normal - Linux新手园地 - 2008-12-29 15:05:43 阅读(1524) 回复(4)

我有三个文件,class.config.jsp class.mysql.jsp test.jsp 访问总是报错,是个新手,没看出错误,那位朋友给看一下。 错误:/./include/class.mysql.jsp:5: '{' expected public class openDB(Config) class.config.jsp 代码如下: <%@page language="java"%> <%! class config_newwapdb { String host="wapdb"; String database="newwapdb"; String user="wap"; String passwd="wap949410";...

by linux68 - Java - 2011-01-14 10:06:19 阅读(1501) 回复(0)

代码情况比较复杂,不好说... 举例说吧,有三个文件 a.c a.h b.c,a.h中定义一个结构体,在另外两个文件都会用到,所以两个文件都include"a.h", a.h还声明了一些a.c中的函数,编译的时候就出现下面错误,这些错误就是在a.h里面的函数声明处, a.h中的结构体用了 typedef ,不知道这个有没有影响,因为看了一些文章,但是也没完全搞明白... 如果有人遇到过这个问题就最好了~~ In file included from detect.h:5, ...

by zuii - C/C++ - 2009-06-08 16:38:06 阅读(19280) 回复(5)

(原标题为:求解:一个菜鸟编程中的问题!) 编写了一个shell命令cp 代码如下: #include #include #include #include #define maxOnce 1024 int main(int argc,char * argv[]) { int fdsrc,fddist; char buf[maxOnce]; char buf1[maxOnce]; int size; if(argc!=3) printf("error for input\n"); if((fdsrc=open(argv[1],O_RDONLY)==-1) perror("error for open\n ");//出错...

by melonmelon - C/C++ - 2006-12-28 20:35:32 阅读(4251) 回复(10)

初学python,碰到了一个错误,求问如何解决? >>> while a < 10: ... print a; File "", line 2 print a; ^ IndentationError: expected an indented block

by laohuanggua - Python - 2010-03-22 14:55:01 阅读(12324) 回复(3)

安装xchm时出现的,怎么办? 先谢过了! [root@localhost tmp]# rpm -ivh xchm-0.9.3-1.i386.rpm error: xchm-0.9.3-1.i386.rpm: MD5 digest: BAD expected(f5a89ad3273880f6f9d2efc44bbee2fe) != (06a10f3e45c5b4237b2b6435f01c9bb9) error: xchm-0.9.3-1.i386.rpm cannot be installed

by fzinfz - Linux论坛 - 2005-10-21 00:29:07 阅读(948) 回复(0)

安装xchm时出现的,怎么办? 先谢过了! [root@localhost tmp]# rpm -ivh xchm-0.9.3-1.i386.rpm error: xchm-0.9.3-1.i386.rpm: MD5 digest: BAD expected(f5a89ad3273880f6f9d2efc44bbee2fe) != (06a10f3e45c5b4237b2b6435f01c9bb9) error: xchm-0.9.3-1.i386.rpm cannot be installed

by fzinfz - Linux系统管理 - 2005-10-21 00:29:07 阅读(1022) 回复(0)