Hello,
I have a project in which I am using an nrf board with Zephyr. I am writing all this in CLion on Linux.
Until now all the code written is in C but I will have to add some C++ written code to it.
From what I read, this is possible, but I cannot manage to implement the C++ file.
When I implement the file, it does not recognise any libraries which I add to the file.
For example, I tried adding
#include "zephyr.h"
//#include <iostream>
#include "logging/log.h"
#include "logging/log_ctrl.h"
but they are all in red. When I try to use cout <, for example it's also not recognised.
In Settings->Toolchains I checked if C and C++ compilers are pesent and they are. The C++ compiler is arm-zephyr-eabi-g++.
My question is, how can this be fixed, and can I use all the standard libraries of ZAephyr that I use in C for my C++ file?
Thank you for your help.