V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Creed
V2EX  ›  Linux

未经修改的 aria2 源码编译,为啥会出现这样的错误? static declaration of “xxx" follows non-static declaration

  •  
  •   Creed · 2015-01-16 02:16:26 +08:00 · 5315 次点击
    这是一个创建于 3359 天前的主题,其中的信息可能已经有所发展或是发生改变。
    给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
    1 条回复    2015-01-16 09:26:30 +08:00
    onemoo
        1
    onemoo  
       2015-01-16 09:26:30 +08:00
    搜索一下看看还有哪里出现了stpcpy的non-static declaration
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1227 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:04 · PVG 02:04 · LAX 11:04 · JFK 14:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.