Hello,
With UDP Sample switched to c++ (main.c -> main.cpp and added CONFIG_CPLUSPLUS=y, CONFIG_LIB_CPLUSPLUS=y) i get compilation error on including lte_lc.h
In file included from d:\Projects\Zen\UDPSampleApp\src\main.cpp:9:
C:\Users\nicolae.georgescu\ncs\v1.9.0\nrf\include\modem\lte_lc.h:640:10: error: 'struct lte_lc_periodic_search_pattern::<unnamed union>::lte_lc_periodic_search_range_cfg' invalid; an anonymous union may only have public non-static data members [-fpermissive]
640 | struct lte_lc_periodic_search_range_cfg {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\nicolae.georgescu\ncs\v1.9.0\nrf\include\modem\lte_lc.h:689:10: error: 'struct lte_lc_periodic_search_pattern::<unnamed union>::lte_lc_periodic_search_table_cfg' invalid; an anonymous union may only have public non-static data members [-fpermissive]
689 | struct lte_lc_periodic_search_table_cfg {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am using the latest sdk v1.9.0 from Toolchain Manager.
Do you have any suggestions?
Thanks,
Nicolae
