技术解析

未经修改的 aria2 源码编译,为啥会出现这样的错误? static declaration of “xxx" follows non-static declaration
0
2021-07-14 09:50:54
idczone
给nas编译的1.16.5和1.17.1都遇到了。


gcc -c -DLOCALEDIR=\"/opt/share/locale\" -DLOCALE_ALIAS_PATH=\"/opt/share/locale\" -DLIBDIR=\"/opt/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -I../deps/wslay/lib/includes -I../deps/wslay/lib/includes /opt/include -I/opt/include/libxml2 -g -O2 -fvisibility=hidden l10nflist.c
l10nflist.c:61: error: static declaration of 'stpcpy' follows non-static declaration

文件上的:

56 # ifndef stpcpy
57 # define stpcpy(dest, src) __stpcpy(dest, src)
58 # endif
59 #else
60 # ifndef HAVE_STPCPY
61 static char *stpcpy (char *dest, const char *src);
62 # endif
63 #endif
搜索一下看看还有哪里出现了stpcpy的non-static declaration

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服