Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

fatal error: string: No such file or directory #include <string> #242

Closed
ghost opened this issue Jan 10, 2017 · 14 comments
Closed

fatal error: string: No such file or directory #include <string> #242

ghost opened this issue Jan 10, 2017 · 14 comments

Comments

@ghost
Copy link

ghost commented Jan 10, 2017

In file included from /Users/damianvandekauter/Documents/Arduino/libraries/Firebase/Firebase.h:25:0, from /Users/damianvandekauter/Documents/Arduino/libraries/Firebase/FirebaseArduino.h:22, from /Users/damianvandekauter/Documents/Arduino/Kamer_Damian/Kamer_Damian.ino:3: /Users/damianvandekauter/Documents/Arduino/libraries/Firebase/FirebaseHttpClient.h:4:18: fatal error: string: No such file or directory #include <string> ^ compilation terminated. exit status 1 Fout bij het compileren van board Arduino/Genuino Uno

I got this error en did some research and changed to <string.h> but now i get a lot of other errors like this:

In file included from /Users/damianvandekauter/Documents/Arduino/libraries/Firebase/Firebase.h:25:0, from /Users/damianvandekauter/Documents/Arduino/libraries/Firebase/FirebaseArduino.h:22, from /Users/damianvandekauter/Documents/Arduino/Kamer_Damian/Kamer_Damian.ino:3: /Users/damianvandekauter/Documents/Arduino/libraries/Firebase/FirebaseHttpClient.h:18:33: error: 'string' in namespace 'std' does not name a type virtual void begin(const std::string& url) = 0; ^ /Users/damianvandekauter/Documents/Arduino/libraries/Firebase/FirebaseHttpClient.h:19:33: error: 'string' in namespace 'std' does not name a type virtual void begin(const std::string& host, const std::string& path) = 0; ^ /Users/damianvandekauter/Documents/Arduino/libraries/Firebase/FirebaseHttpClient.h:19:58: error: 'string' in namespace 'std' does not name a type virtual void begin(const std::string& host, const std::string& path) = 0; ^ /Users/damianvandekauter/Documents/Arduino/libraries/Firebase/FirebaseHttpClient.h:23:37: error: 'string' in namespace 'std' does not name a type virtual void addHeader(const std::string& name, const std::string& value) = 0; ^

I have the same issue on memory , or vector, utility,...

schermafbeelding 2017-01-10 om 18 27 46
schermafbeelding 2017-01-10 om 18 40 47

@rickdroio
Copy link

Any solution for this issue?

@Appy23
Copy link

Appy23 commented May 8, 2017

same problem!! did any of you solve it?????

@leoleung2030
Copy link

I got the same problem. Any solution?

@proppy
Copy link
Contributor

proppy commented May 15, 2017

Did you select/install the ESP8266 core in the Tools > Board menu?

@Obad94
Copy link

Obad94 commented Jul 6, 2017

I'm having the same issue.

@p8c
Copy link

p8c commented Nov 12, 2017

This is really stupid. Why would you write such a library if you can use it only with ESP8266? I have a 3g module for instance.

@jfrankert
Copy link

Any update to this? It seems the library only works for the ESP core, but I actually want to use the Arduino board with a serial connection to the ESP. Looking for the solution to this.

@proppy
Copy link
Contributor

proppy commented Nov 14, 2017

@jfrankert you'd have to define your own protocol to communicate between the ESP and the Arduino board.

You can find an example of this in https://github.com/firebase/firebase-arduino/tree/master/contrib/examples

@jfrankert
Copy link

@proppy Thanks for the link, but this is definitely out of my skill set. Do you have more information or some more guidance? I am certainly able to write AT commands to the ESP from the Arduino core, but haven't traveled down this path before.

@proppy
Copy link
Contributor

proppy commented Nov 14, 2017

https://github.com/firebase/firebase-arduino/tree/master/contrib/examples/FirebaseSerialHost_ESP8266 contains the sketch to deploy to the ESP

You can then make Firebase API call from the Arduino using the Serial protocol defined by @ed7coyne here https://github.com/firebase/firebase-arduino/blob/master/contrib/src/modem/serial_protocol.md

@jfrankert
Copy link

@proppy - Unfortunately, I need more details. I have no problem trying to setup libraries for the serial protocol and firebase connections to share with the community, but could you give me an few examples of the above so I can better grasp it.

@proppy
Copy link
Contributor

proppy commented Nov 14, 2017

Let's continue the discussion in #297

@Regilan
Copy link

Regilan commented Mar 22, 2018

FirebaseArduino.h:20:18: fatal error: string: No such file or directory. I having the same issue! help. I'm interfacing GSM module 800a with my Arduino Uno

@proppy
Copy link
Contributor

proppy commented Jun 15, 2018

Sorry for the lack of followup:

@Regilan @p8c Let's discuss support for more board in this proposal #344.

@proppy proppy closed this as completed Jun 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants