1

在为mips编译android库时,我遇到了

In file included from /Volumes/Projects/api9-mips/sysroot/usr/include/strings.h:42,
                 from /Volumes/Projects/api9-mips/sysroot/usr/include/stdlib.h:42,
                 from runtime/api.c:2:
/Volumes/Projects/api9-mips/sysroot/usr/include/sys/types.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nlink_t’

sys/types.h 本身有

typedef __kernel_key_t       key_t;
typedef __kernel_mode_t      mode_t;
typedef __kernel_nlink_t     nlink_t; <-------- 64
#ifndef _OFF_T_DEFINED_
#define _OFF_T_DEFINED_

该部分唯一奇怪的是 __kernel_nlink_t 与 nlink_t 由空格和制表符分隔,而所有其余的 _t 类型定义都由空格分隔到它们的对应部分。我该如何解决?

4

0 回答 0