board.h missing extern C guard

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

board.h missing extern C guard

749件の閲覧回数
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 返信

710件の閲覧回数
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 件の賞賛
返信