Skip to content
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

Closed
fynixtech opened this issue Sep 2, 2014 · 5 comments
Closed

c_str member error #17

fynixtech opened this issue Sep 2, 2014 · 5 comments

Comments

@fynixtech
Copy link

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'

@marcoschwartz
Copy link
Owner

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 ?

@fynixtech
Copy link
Author

I am currently using 1.5.1r2 stand alone version on Windows 7.

@marcoschwartz
Copy link
Owner

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 ?

@fynixtech
Copy link
Author

alright I will be trying that out tomorrow

@fynixtech
Copy link
Author

I compiled with 1.0.5r1 and compiles with no errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants