board.h missing extern C guard

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

board.h missing extern C guard

189 Views
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

 

 

Labels (2)
0 Kudos
Reply
1 Reply

150 Views
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 Kudos
Reply