MacOS下使用Qt开发,引入Carbon.h的时候提示CFBase.h错误

/ 0评 / 0

如题,在引入Carbon.h头文件的时候,报错:

详细的报错信息:

In included file: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators?
CFBase.h:474:9: error occurred here

网上搜不到相关的解答,索性将源文件的后缀名改成了.mm,神奇般的不报错了,而且编译也通过,运行也正常

名言语句:甲之蜜糖,乙之砒霜。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注