board.h missing extern C guard

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

board.h missing extern C guard

742 次查看
aberger
Contributor V

This is a bug report. I am using SDK_2.16.000 for the MCXA153. When I use the "Create a new C/C++ project" wizard in MCUXpresso and create a new C++ project, the generated code fails to build because of 

undefined reference to `BOARD_InitDebugConsole()'

This is because board.h is missing the extern C guard, which can be fixed as follows:

 

 

#ifdef __cplusplus
extern "C" {
#endif

void BOARD_InitDebugConsole(void);

#ifdef __cplusplus
}
#endif

 

 

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

703 次查看
Alphabert_Liu
NXP Employee
NXP Employee

Dear @aberger ,

Based on your feedback, we have reproduced the issue and have indeed identified the corresponding problem.

Thank you for your contribution to the NXP Community with your answer! We have submitted the bug to the relevant team and hope to update the corresponding patch as soon as possible.

Best Regard

Liu

0 项奖励
回复