C++ and Eclipse woes
Posted: Wed Dec 20, 2017 1:11 pm
Dear ESP wizards,
I'm really excited to have some fun with ESP32, but so far I've gotten bogged down with the environment setup. By using official "Get Started" guide and a lot of try and error I've managed to convince Eclipse to build a "hello world" example C file without any problems and errors. However since I'm far more versed in C++, I thought I'd start with that before moving to C.
So I've modified the preprocessor compiler setting as stated in the Kolban book, changed the hello world file form main.c to main.cpp and added: extern "C" { int app_main(void); } at the begging. The result is that the project gets build without a hitch, but now those pesky "unresolved inclusion" errors are back! Grrr...
Any ideas how can I make them go away for good?
Thanks!
I'm really excited to have some fun with ESP32, but so far I've gotten bogged down with the environment setup. By using official "Get Started" guide and a lot of try and error I've managed to convince Eclipse to build a "hello world" example C file without any problems and errors. However since I'm far more versed in C++, I thought I'd start with that before moving to C.
So I've modified the preprocessor compiler setting as stated in the Kolban book, changed the hello world file form main.c to main.cpp and added: extern "C" { int app_main(void); } at the begging. The result is that the project gets build without a hitch, but now those pesky "unresolved inclusion" errors are back! Grrr...
Any ideas how can I make them go away for good?
Thanks!