Go Down

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


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?


Dec 27, 2009, 06:07 pm Last Edit: Dec 27, 2009, 06:07 pm by Kitep Reason: 1
(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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131