FSL_ADC.H compilation error in C++ project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FSL_ADC.H compilation error in C++ project

439 Views
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_ */

Labels (1)
Tags (1)
0 Kudos
1 Reply

386 Views
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 Kudos