Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By SCKStef
#29557
trendchaster wrote:Hello SCKStef,
By using this function string str = string(array); It shows following error.
"Type 'string' could not be resolved." Any other idea how to do conversion

Hi trendchaster,
you need to include the string library, just add #include<string.h> at the beginning of the file where you want to use the function.
User avatar
By trendchaster
#29576
SCKStef wrote:
trendchaster wrote:Hello SCKStef,
By using this function string str = string(array); It shows following error.
"Type 'string' could not be resolved." Any other idea how to do conversion

Hi trendchaster,
you need to include the string library, just add #include<string.h> at the beginning of the file where you want to use the function.


After adding the library,it shows same error

user/user_main.c: In function 'mqttConnectedCb':
user/user_main.c:234:3: error: unknown type name 'string'
string str = string(abc[count]);
User avatar
By EspFan
#29645 Hey CHERTS, this SDK is still amazing! I used an older version when it first came out, and recently upgraded. Everything went perfectly! Thanks again for creating such a great tool!

I wrote a driver for the Bosch BME280 sensor, and the code I wrote should fit nicely as an additional example based off the BMP180 example. I made a forum post here: viewtopic.php?f=13&t=5630