当前位置: 技术问答>linux和unix
ubuntu连不上网
来源: 互联网 发布时间:2016-10-14
本文导语: 我下了一个h3c的客户端,可是在安装时候有以下提示: qwer@qwer-OEM:~/桌面/h3cclient_Beta1_src$ make g++ -c -o main.o main.cpp In file included from dot1x.h:5, from main.cpp:2: pcap.h:269: error: declaration of C...
我下了一个h3c的客户端,可是在安装时候有以下提示:
qwer@qwer-OEM:~/桌面/h3cclient_Beta1_src$ make
g++ -c -o main.o main.cpp
In file included from dot1x.h:5,
from main.cpp:2:
pcap.h:269: error: declaration of C function ‘u_int bpf_filter(bpf_insn*, __u_char*, u_int, u_int)’ conflicts with
/usr/include/pcap/bpf.h:1057: error: previous declaration ‘u_int bpf_filter(const bpf_insn*, const __u_char*, u_int, u_int)’ here
pcap.h:270: error: declaration of C function ‘int bpf_validate(bpf_insn*, int)’ conflicts with
/usr/include/pcap/bpf.h:1056: error: previous declaration ‘int bpf_validate(const bpf_insn*, int)’ here
main.cpp: In function ‘int main(int, char**)’:
main.cpp:52: error: ‘strcmp’ was not declared in this scope
main.cpp:72: error: ‘strlen’ was not declared in this scope
main.cpp:73: error: ‘strcpy’ was not declared in this scope
main.cpp:127: error: ‘strtok’ was not declared in this scope
main.cpp:156: error: ‘strcpy’ was not declared in this scope
main.cpp:158: error: ‘strtok’ was not declared in this scope
make: *** [main.o] 错误 1
qwer@qwer-OEM:~/桌面/h3cclient_Beta1_src$
这是为啥啊?
|
这个源码有问题啊
#include
加到main.cpp里看看
或者
#include
#include
加到main.cpp里看看
或者
#include