Hi, Do the toolchain and SDK of either version support C++? I have tried to program in C++ and rename main.c to main.cpp but got error from compiler. I am not sure if C++ is not supported or I have got something wrong, or there is a different toolchain.
Thnx
Help C++
Re: Help C++
Postby HankB » Fri Apr 15, 2022 11:36 am
The APIs are mostly C. I looked around and found some experimental C++ APIs but I don't recall if they were for the ESP8266 or ESP32. But, I can do a search now and find that the ESP8266-RTOS-SDK has 46 CPP files so there must be some support. I don't see any mention of that in the original API documents.
I've converted code I wrote for ESP32 to C++ but it still uses the C APIs and my code is C++.
If you just rename files (as I did) you will get errors that can be fixed.
I've converted code I wrote for ESP32 to C++ but it still uses the C APIs and my code is C++.
If you just rename files (as I did) you will get errors that can be fixed.
Who is online
Users browsing this forum: No registered users and 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.