
如题: 在stm8l15x_rtc.h中定义了RTC_TimeTypeDef结构体类型 我自己建的一个头文件CPU.h中声明一个函数void INTERNALRTC_TIME(RTC_TimeTypeDe *RTC_TimeSTR); 在链接的时候报错。Error[Pe020]: identifier "RTC_TimeTypeDef" is undefined 但是在任何.c文件中直接使用RTC_TimeTypeDe *RTC_TimeSTR定义没问题。 P.S 在每一个头文件中都使用了#ifndef xxxx #define xxxx。用ST提供的stm8l15x_conf.h包含了所有的.h文件。 请教高手为何出错。用的是IAR FOR STM8 V1.31.1版本。 |