This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:TI C/C++编译器
你好
这不仅仅是一个错误报告、而是一个问题。
头文件:
TI/PDK_OMAPL138_1_01_00_02/packages/ti/CSL/cslr_spi.h
(它是 OMAPL138的芯片支持库的一部分)
包含段
#ifdef __cplusplus extern "C"{ #endif
不过、部分
#ifdef __cplusplus } #endif
最后丢失了!
这在编译 C 代码时很好。 但它会导致 C++编译器在文件末尾抛出"缺少"}"错误。
为了使事情变得更加复杂、编译器不会告诉您在 cslr_spi.h 文件中"缺少"}"、而是针对当前编译的 C++文件抛出此错误、该文件在许多嵌套头文件中包含此头文件。
PS:您是否在发布库之前尝试编译它们????