Search found 3 matches

by bengchet
Thu Dec 01, 2016 1:35 am
Forum: ESP-IDF
Topic: Programming in C++
Replies: 48
Views: 110360

Re: Programming in C++

Hi, Thanks to ESP_Igrr, now I am able to compile it. Attached is the main.cpp file with few modifications. #include "freertos/FreeRTOS.h" #include "esp_wifi.h" #include "esp_event.h" #include "esp_event_loop.h" #include "driver/gpio.h" #include "esp_system.h" #include "nvs_flash.h" #include "triangl...
by bengchet
Thu Dec 01, 2016 12:07 am
Forum: ESP-IDF
Topic: Programming in C++
Replies: 48
Views: 110360

Re: Programming in C++

Hi,

Thanks for quick reply. I will get back to you with the result. Many thanks again!
by bengchet
Wed Nov 30, 2016 8:56 pm
Forum: ESP-IDF
Topic: Programming in C++
Replies: 48
Views: 110360

Re: Programming in C++

Hi, Is it possible to use C++ in ESP-IDF environment? I have made a simple class, and include .h and .cpp in the same directory as main file. What I understood is in order to make this work, first main file must be in cpp file type as well, thus I rename main.c to main.cpp but it produces the error ...