ChinaUnix.net
相关文章推荐:

error expected primaryexpression before '

在Suse11.0上用交叉编译器xscale-linux-gcc编译一个库,出现如题的错误: “ xscale-linux-gcc -O2 -fPIC -I. -I ../../kernel -I ../lib -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c bpf_filter.c bpf_filter.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token make: *** [bpf_filter.o] error 1 ” bpf_filter.c文件的内容就一行: link ./bpf/net/bpf_filter.c 我一直用...

by yu_single - 嵌入式开发 - 2010-05-13 12:30:43 阅读(5657) 回复(2)

相关讨论

error: expected declaration specifiers or ‘...’ before ‘foo’ Hey guys. I am trying to implement a system call in linux kernel. I usually use ubutntu, but this I am doing on Fedora. I am using kernel 2.6. Here is what I did: 1. Added a line to arch/i386/kernel/syscall_table.S: .long sys_foo 2. Added a line to linux/include/asm-i386/unistd.h: #define __NR_foo 324 also incremented the call ...

by zuorizhifeng - Linux系统管理 - 2008-04-16 09:39:10 阅读(1453) 回复(0)

error: expected specifier-qualifier-list before __u32 将 #include 加入到 /usr/include/linux/if_packet.h 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4329/showart_1270207.html

by zqqa - Linux文档专区 - 2008-09-28 17:46:27 阅读(3095) 回复(0)

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

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

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

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

(原标题为:求解:一个菜鸟编程中的问题!) 编写了一个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)

19 #include 20 using namespace std; 21 int main() 22 { 24 for (int i = 1; i < 10000; i = i+1) 25 { 26 sum =sum+i; 27 } 28 cout << sum << endl; 29 return 0 30 } 怎么通过?

by 嘉伟w - C/C++ - 2012-07-06 20:23:26 阅读(1312) 回复(3)

我想给我的cnetos 5.1的iptables增加ipp2p功能,linux内核版本2.6.18-53.el5,iptables版本为1.3.5,现在我从网上下载了kernel为2.6.18.8的源码包,iptables仍为1.3.5源码,patch-o-matic-ng-20071120。给内核打补丁,在内核的配置文件中选择ipp2p为模块, 1。make modules_prepare 2.make M=net/ipv4/netfilter 出错: CC [M] net/ipv4/netfilter/ipt_ipp2p.o net/ipv4/netfilter/ipt_ipp2p.c:749: 错误:expected declarati...

by cyq7011 - 内核源码 - 2008-11-27 17:18:16 阅读(6410) 回复(5)

错误具体如下: shell.c: In function ‘main’: shell.c:40: 错误:expected expression before ‘char’ shell.c:40: 错误:提供给函数 ‘setup’ 的实参太少 这个是第四十行代码: setup( char inputBuffer[],char *args[ ] ,int *background); 函数定义如下: void setup(char inputBuffer[ ],char *args[ ] ,int *background) { ...... ...... ...... ...... }

by 夏日红颜 - Linux新手园地 - 2014-05-09 13:54:57 阅读(9299) 回复(4)

typedef enum { false = 0, true = 1 } bool; 我运行完我的代码后,弹出问题:parse error before 'false' declaration does not declare anything 应该怎么进行修改呀~ 请高手指点一下。。谢谢哈~

by cristin871125 - C/C++ - 2009-05-25 10:16:55 阅读(2356) 回复(9)

我在头文件中定义 typedef struct { ...; }A; typedef struct { ...; }B; 在C文件中定义 int func() { A* pA = NULL; B* pB = NULL; ....; } 用gcc编译时报 parse error before `pA' parse error before `pB' 什么情况,真是郁闷

by tempname_cn - C/C++ - 2008-07-22 16:54:06 阅读(4740) 回复(12)