1

我正在尝试使用 Symbian Belle Sdk 为 Pys60 2.0 编译 PyS60USB,但由于一些看似无关的原因,我收到了关于几乎所有没有命名类型的看似随机的错误,如下所示:

*

C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:38: error: '__int8_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:43: error: '__int16_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:48: error: '__int32_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:53: error: '__int64_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:58: error: '__uint8_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:63: error: '__uint16_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:68: error: '__uint32_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:73: error: '__uint64_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:77: error: '__int_least8_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:78: error: '__int_least16_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:79: error: '__int_least32_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:80: error: '__int_least64_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:82: error: '__uint_least8_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:83: error: '__uint_least16_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:84: error: '__uint_least32_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:85: error: '__uint_least64_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:87: error: '__int_fast8_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:88: error: '__int_fast16_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:89: error: '__int_fast32_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:90: error: '__int_fast64_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:92: error: '__uint_fast8_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:93: error: '__uint_fast16_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:94: error: '__uint_fast32_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:95: error: '__uint_fast64_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:97: error: '__intmax_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:98: error: '__uintmax_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:101: error: '__intptr_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/stdint.h:102: error: '__uintptr_t' does not name a type*

我还收到类似以下的其他错误:*

C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/python25/pyport.h:90: error: 'uintptr_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/python25/pyport.h:91: error: 'intptr_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/python25/pyport.h:116: error: 'Py_intptr_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/sys/_sigset.h:51: error: '__uint64_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/sys/_timeval.h:35: error: '__suseconds_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/sys/_timeval.h:40: error: '__time_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/sys/_timeval.h:47: error: redefinition of 'struct timeval'
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/libc/sys/time.h:30: error: previous definition of 'struct timeval'
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/sys/select.h:45: error: conflicting declaration 'typedef __fd_mask fd_mask'
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/libc/sys/types.h:89: error: 'fd_mask' has a previous declaration as 'typedef long int fd_mask'
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/sys/select.h:50: error: '__uint64_t' does not name a type
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/sys/select.h:72: error: redefinition of 'struct fd_set'
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/libc/sys/types.h:97: error: previous definition of 'struct fd_set'
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/sys/select.h:74: error: invalid type in declaration before ';' token
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/stdapis/sys/select.h:74: error: conflicting declaration 'typedef int fd_set'
C:/Nokia/Devices/Nokia_Symbian_Belle_SDK_v1.0/epoc32/include/libc/sys/types.h:99: error: 'fd_set' has a previous declaration as 'typedef struct fd_set fd_set'*

ETC...

我猜这些错误可能是相关的,并且可能是由我的环境或其他问题引起的。你们有谁知道可能导致所有这数百个错误的原因吗?

4

1 回答 1

0

看起来您的包含路径中有两个不兼容的 C 标准库实现。有旧ESTLIBepoc32/include/libc和新的 Open C epoc32/include/stdapis。从您的 MMP 文件包含路径中删除前者。在那里,检查您是否没有链接到estlib.lib.

免责声明:距离我上次接触 Symbian SDK 已经过去几年了。

于 2013-04-23T12:54:02.920 回答