This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Compiler Error: Unimplemented Non-Trival Error

Hello,

I am using SDK 15.0.0, Segger IDE with GNU compiler (GNU++11, GNU11).

I am using the default serial example from SDK 15.0.0 with C source file. But when i switch the default serial code from C source file. to C++ source file, i am getting an error " Unimplemented Non-Trival Error " in pre-define macros from nrf_serial.h (Many more default files). What kind of compiler setting do i need to use in segger to solve this error? 

Thanks,

Rohit

Parents
  • Hi 

    Unfortunately there is no straight forward way to use C++ with the nRF5 SDK. Many of the SDK files use syntax which is not supported in C++, such as the way many structs and unions are initialized. 

    There is a request internally to make the SDK C++ compliant, but this is not a high priority task, so it is unknown if or when it will be fixed. 

    Best regards
    Torbjørn

Reply
  • Hi 

    Unfortunately there is no straight forward way to use C++ with the nRF5 SDK. Many of the SDK files use syntax which is not supported in C++, such as the way many structs and unions are initialized. 

    There is a request internally to make the SDK C++ compliant, but this is not a high priority task, so it is unknown if or when it will be fixed. 

    Best regards
    Torbjørn

Children
Related