Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Creed
V2EX  ›  Linux

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

  •  
  •   Creed · Jan 16, 2015 · 6239 views
    This topic created in 4156 days ago, the information mentioned may be changed or developed.
    给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 replies    2015-01-16 09:26:30 +08:00
    onemoo
        1
    onemoo  
       Jan 16, 2015
    搜索一下看看还有哪里出现了stpcpy的non-static declaration
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1230 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:36 · PVG 01:36 · LAX 10:36 · JFK 13:36
    ♥ Do have faith in what you're doing.