C++ support in nrf9160 modem_key_mgmt library

Env:

  • gcc version 10.3.1 20210824 (release) (GNU Arm Embedded Toolchain 10.3-2021.10)
  • std=c++11
  • nRF Connect SDK v2.0.0

C++ project won't build with modem_key_mgmt library:

undefined reference to `modem_key_mgmt_write(unsigned int, modem_key_mgmt_cred_type, void const*, unsigned int)'
collect2.exe: error: ld returned 1 exit status

modem_key_mgmt.h is missing 

#ifdef __cplusplus
extern "C" {
#endif
...
#ifdef __cplusplus
}
#endif

Related