I'm a novice with STM32 and Keil. I'd like to use a BMP280 C library and a RFM69 C++ library. I wasn't able to understand how to use both in the same project. Can someone share some advice/guidance? The C++ library uses .hpp files and they were not recognized. I was probably making a mistake. Thank you in advance for any help.
here is how i do it and it works
stmmxcube-> generate code for keil
compile code in keil
in keil-> right click main.c->options for file main.c->file type->c++ source file
now you can add c++ header files and it will work
when you regenerate code form stm cubemx repeat steps
i generally add c++ files from arduino and make them compatable
it works always
some functions are still not supported
currently c++17 is supported
Thanks again for your reply. I still receive this error:
Error: C4065E: type of input file \RFM69-STM32-master\rfm69.hpp' unknown
Do you have any suggestions to resolve it?
Please dis-regard my last error post, I didn't catch that it added the hpp as a source file instead of a text file. Your solution worked. Thanks again.
View all questions in Keil forum