Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gcc 当我配置ctags-5.8时,有未声明的标识错误_Gcc_Ctags - Fatal编程技术网

Gcc 当我配置ctags-5.8时,有未声明的标识错误

Gcc 当我配置ctags-5.8时,有未声明的标识错误,gcc,ctags,Gcc,Ctags,在Mac 10.15上 在配置ctags-5.8时,我遇到了以下问题: gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c main.c In file included from main.c:62: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/dirent.h:80:2: error: use of undeclared identifier 'unused' __unu

在Mac 10.15上 在配置ctags-5.8时,我遇到了以下问题:

gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c main.c

In file included from main.c:62:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/dirent.h:80:2: error:
  use of undeclared identifier 'unused'
    __unused long   __padding; /* (__dd_rewind space left for bincompat) */
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:161:40: note:
  expanded from macro '__unused'
#define __unused        __attribute__((__unused__))
                                   ^
./general.h:60:37: note: expanded from macro '__unused__'
# define __unused__  __attribute__((unused))
                                ^
1 error generated.
make: *** [main.o] Error 1
gcc-v:
这是一个令人讨厌的bug,完全是ctags的错——它不应该定义以双下划线开头的宏。看起来它想用它做点什么,但我怀疑它是否成功。你认为你应该在ctags页面上提出一个问题,现在,试着删除
\uuu attribute\uuuuuuuu((未使用))
部分,只留下空的
\define\uu unused\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu(/code>),或者从
general.h
中删除整行。是的,我不知道如何处理这个问题。试着删除
\uu attribute\uuuuuuu((未使用))
/general.h
文件中的
行定义未使用的属性((未使用))
并只保留
\define未使用的属性
Configured with: ../configure --build=x86_64-apple-darwin19 --
Thread model: posix
gcc version 8.3.0 (Homebrew GCC 8.3.0_2)