FSL_ADC.H compilation error in C++ project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FSL_ADC.H compilation error in C++ project

1,092 次查看
hotchk155
Contributor I

There seems to be a bug in fsl_adc.h (Using SDK_2.x_MKE04Z128xxx4 v2.5.0)

extern C block at at line 156 is never closed.. 

#if defined(__cplusplus)
extern "C" {
#endif

when including in a C++ project missing close brace errors reported. I think a close block is required in the header at end of file - i.e. 

#if defined(__cplusplus)
}
#endif

#endif /* _FSL_ADC_H_ */

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,039 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Jason:

Thank you very much for your feedback. This is an issue in SDK_2.5_MKE04Z.   This issue was fixed in SDK 2.6.

I would suggest download the latest SDK. 2.6 from Welcome | MCUXpresso SDK Builder 

Regards

Daniel

0 项奖励
回复