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

Build example project using C++11 with SEGGER_IDE failed

Hi, in these days I want use the new feature of C++11 in nrf52 project, so I rename the "main.c" file to "main.cpp"(ble_app_blinky project), select the C++11 compiler in project options dialog,

then start building, it failed and the infomation is: 

Look forward to your reply。

Parents
  • Thanks for reply! I modify the code like  said, it works and the "app_util.h" has no error now. But,like  said, there are many other areas which also need modifications—— The linker can not find ”nrf_pwr_mgmt_init“ and ”nrf_pwr_mgmt_run“:

    When I temporarily comment out these two lines of code,the project build successfully and I can use lambda in main function.

    Why the linker can not find ”nrf_pwr_mgmt_init“ and ”nrf_pwr_mgmt_run“?

Reply
  • Thanks for reply! I modify the code like  said, it works and the "app_util.h" has no error now. But,like  said, there are many other areas which also need modifications—— The linker can not find ”nrf_pwr_mgmt_init“ and ”nrf_pwr_mgmt_run“:

    When I temporarily comment out these two lines of code,the project build successfully and I can use lambda in main function.

    Why the linker can not find ”nrf_pwr_mgmt_init“ and ”nrf_pwr_mgmt_run“?

Children
Related