gcc - When I make the configure of ctags-5.8 has the undeclared identifie Erro
问题描述
On Mac 10.15 When i make the configure of ctags-5.8, I have the problem:
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 :
Configured with: ../configure --build=x86_64-apple-darwin19 --
Thread model: posix
gcc version 8.3.0 (Homebrew GCC 8.3.0_2)
解决方案
这是ctest中的一个错误。以 double 开头的标识符_
被保留并由标准库使用。用户程序不应该使用这样的标识符,因为这样的错误可能会发生。
推荐阅读
- http - 为什么 Firefox 会忽略缓存标头并在刷新时重新验证?
- r - 数据框取两列并根据值采取行动
- android - 如何自定义 DialogFragment?
- python - 填写两个列表之间的范围
- java - 我想在 TextView 中添加字符串
- python - 如何根据位于一个目录中的不同文件绘制不同的子图?
- sql - 如何获取与 PostgreSQL 中最常见值关联的 ID?
- .htaccess - Prestashop 激活时不显示友好 URL 图像
- anaconda - 在 conda env 中安装 Jupyter -“AttributeError:模块 'colorama' 没有属性 'init'”
- c++ - 如何有效地计算指数函数的数字范围内的数字