1910739_en-US

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

1910739_en-US

1910739_en-US

board.h missing extern C guard

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


Development BoardMCXARe: board.h missing extern C guard

More that a year after you've made a promise, the bug is still there when creating a C++ project in a fresh installation (december, 2025):

undefined reference to `BOARD_InitDebugConsole()'


Does anyone at NXP is taking care of its customers?


Re: board.h missing extern C guard

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

Re: board.h missing extern C guard

Hello @fjrg76 

Thank you for reporting this issue. I sincerely apologize for my delayed response.

In our internal system, once a case has been closed for more than one month, we no longer receive reminders or notifications when new updates are added to the case. I sincerely apologize for any inconvenience this may have caused.

Regarding this issue, I will confirm it with our SDK team and get back to you as soon as possible.

As a kind reminder, if you have any further questions or concerns in the future, please create a new support ticket. This will allow us to see your request promptly and provide a timely response. Alternatively, you may contact me directly, and I will get back to you as soon as I see your message.

Thank you for your understanding and patience.


BR

Alice

Tags (1)
No ratings
Version history
Last update:
15 hours ago
Updated by: