Can't able to create cpp application

I’ve been working on creating a C++ application based on the NUS example, but I’m encountering an error. I’ve attached my application below. All I did was enable CONFIG_CPLUSPLUS=y and CONFIG_CPP=y, and renamed main.c to main.cpp. However, it’s now showing an error related to the bluetooth.h file as below

Fullscreen
1
2
3
4
5
6
7
8
9
In file included from ../src/main.cpp:18:
../src/main.cpp: In function 'int main()':
C:/ncs/v2.5.0/zephyr/include/zephyr/bluetooth/bluetooth.h:881:37: error: taking address of temporary array
881 | ((struct bt_le_adv_param[]) { \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
882 | BT_LE_ADV_PARAM_INIT(_options, _int_min, _int_max, _peer) \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
883 | })
| ~~
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

APPLICATION : Frame_work.zip