Go Down

Topic: String library problem (Read 631 times) previous topic - next topic

OrangeRiver

I can't get the String library to work, even declaring an instance of Sting class, like this:

Code: [Select]
#include <String.h>
String str = String(10);


Throws this compiler error:
Code: [Select]

error: 'string' does not name a type


I've tried compiling the examples that come with the library, and (after fixing the include from WString.h to String.h), they have the same problem.
Any ideas?

Kitep

#1
Dec 27, 2009, 06:07 pm Last Edit: Dec 27, 2009, 06:07 pm by Kitep Reason: 1
Quote
(after fixing the include from WString.h to String.h)


If you switch it back, it compiles no problem.

Even though the library is called "String", the actually file names are called "WString".  

Good luck!

Go Up