Go Down

Topic: Exit status 1 error (Read 113 times) previous topic - next topic

Kaushik007

#include <dht.h>
dht DHT;
void setup() {
 
Serial.begin(9600);
Serial.println("WEATHER MONITOR");

}

void loop() {
 
int tempdata=DHT.read11(5);
Serial.print("Temperature=");
Serial.print(DHT.temperature);
Serial.print("\t");
Serial.print("Humidity=");
Serial.println(DHT.humidity);
delay(2000);
}


This is my code and i am getting error compiling for board arduino/genuine uno

PaulS

You got some library from somewhere that you don't want to disclose. Yet, you want us to get the same library, and try to reproduce your problem.

How likely is THAT?
The art of getting good answers lies in asking good questions.

pert

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn't show the posting toolbar then you can just manually add the code tags:

[code]// your code is here[/code]

Using code tags and other important information is explained in the How to use this forum post. Please read it.

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor you will not have access to this useful tool but it's still unacceptable to post poorly formatted code. I recommend you to use the standard IDE instead.

When your code requires a library that's not included with the Arduino IDE please always post a link (using the chain link icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger(Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

Kaushik007's picture:


The screenshot you posted doesn't even demonstrate the error message you claim to be getting but anyways, don't post screenshots of text! That is very unhelpful. When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar). It is almost never appropriate to post screenshots but in some cases it is helpful to post images. You should attach and embed the image following these instructions:
http://forum.arduino.cc/index.php?topic=364156

Go Up