-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c_str member error #17
Comments
Hi, thanks for the notice. I just tested it again by doing a fresh install of the library on another machine (Linux with Arduino IDE 1.0.5) and it works fine. Also tested it on 1.0.5 and 1.5.7 under OS X. String.c_str() is indeed a function of the String class: http://www.cplusplus.com/reference/string/string/c_str/ What Arduino IDE are you using ? |
I am currently using 1.5.1r2 stand alone version on Windows 7. |
I just made a fresh install on Windows (8.1), with 1.0.5 & 1.5.7 it compiles fine. Maybe upgrade to 1.5.7 ? |
alright I will be trying that out tomorrow |
I compiled with 1.0.5r1 and compiles with no errors. |
I was getting this error when compiling some code I wrote implementing the aREST library. I commented the offending line in the library on line 277 and everything works fine. I am thinking it was left behind during your debugging.
In file included from WiFi_CC3000_1.ino:5:
C:\Users\Mech\Desktop\arduino-1.5.1r2\hardware\arduino\avr\libraries\aREST/aREST.h: In member function 'void aREST::handle_proto(T&, bool)':
C:\Users\Mech\Desktop\arduino-1.5.1r2\hardware\arduino\avr\libraries\aREST/aREST.h:277: error: 'class String' has no member named 'c_str'
The text was updated successfully, but these errors were encountered: