keil5用C++编译,出现错误:
D:\Keil_v5\Arm\Packs\AutoChips\AC781x_DFP\1.1.0\ATC_Driver\Drivers\GPIO\ac78xx_gpio_reg.h(131): error: #294: invalid union member -- class "struct <unnamed>::<unnamed>::<unnamed>" has a disallowed member function
原因找到:CMSIS: Why is __I different in C and C++
但是,ac78xx_gpio_reg.h 是只读文件(官方文件),不想改。
还有其它方法吗?
|