9 years, 7 months ago.

How to declare string in mbed compiler ?

I want to declare a string in my prog.. When i write string file the colour of string changes to blue that means it is a data type but when I compile it the following error is coming

Error: Identifier "string" is undefined in "main.cpp", Line: 43, Col: 3

can u please help me ..??

1 Answer

9 years, 7 months ago.

add #include<string> library after mbed.h. hope it will help :)

Accepted Answer

Works!

posted by Metin Oktay YILMAZ 05 Jun 2015