我正在尝试在Archlinux中安装vpcs (GNS3需要),但在运行makepkg命令后出现以下错误:
**In file included from hv.c:45:0:
./getopt.h:53:5: error: conflicting types for ‘getopt’
int getopt(int argc, char** argv, char* optstr);
^~~~~~**
In file included from /usr/include/bits/getopt_posix.h:27:0,
from /usr/include/unistd.h:872,
from hv.c:33:
/usr/include/bits/getopt_core.h:91:12: note: previous declaration of ‘getopt’ was here
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
^~~~~~
make: *** [Makefile.linux:38: hv.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
我试着在谷歌上搜索这个问题-没找到。有什么帮助吗?
https://stackoverflow.com/questions/46451587
复制相似问题