Hey I tried to upload some code but then I got the error message I'm a newbie and wasn't sure how to fix an undefined reference got the code online and shouldn't have any errors
C:\Users\WOUTempAdmin\AppData\Local\Temp\untitled1480842969.tmp\soilhumitidy/soilhumitidy.ino:10: undefined reference to `NS_energyShield2::NS_energyShield2()'
C:\Users\WOUTEM~1\AppData\Local\Temp\ccefsoog.ltrans0.ltrans.o: In function `setup':
C:\Users\WOUTempAdmin\AppData\Local\Temp\untitled1480842969.tmp\soilhumitidy/soilhumitidy.ino:13: undefined reference to `NS_energyShield2::begin()'
C:\Users\WOUTempAdmin\AppData\Local\Temp\untitled1480842969.tmp\soilhumitidy/soilhumitidy.ino:17: undefined reference to `NS_energyShield2::sleepSeconds(long)'
collect2.exe: error: ld returned 1 exit status
Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire
exit status 1
Error compiling for board Arduino/Genuino Uno.
If possible, you should always post code directly in the forum thread as text using code tags:
Do an Auto Format (Tools > Auto Format in the Arduino IDE or Ctrl + B in the Arduino Web Editor) on your code. This will make it easier for you to spot bugs and make it easier for us to read.
In the Arduino IDE or Arduino Web Editor, click on the window that contains your sketch code.
Press "Ctrl + A". This will select all the text.
Press "Ctrl + C". This will copy the selected text to the clipboard.
In a forum reply here, click on the reply field.
Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
Press "Ctrl + V". This will paste the sketch between the code tags.
Move the cursor outside of the code tags before you add any additional text to your reply.
Repeat the above process if your sketch has multiple tabs.
This will make it easy for anyone to look at it, which will increase the likelihood of you getting help.
If the sketch is longer than the 9000 characters maximum allowed by the forum, then it's OK to add it as an attachment. After clicking the "Reply" button, you will see an "Attachments and other settings" link.
When your code requires a library that's not included with the Arduino IDE please post a link (using the chain links icon on the forum 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 in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.
<// In this example, the Arduino turns on, blinks the LED,
// and then turns off for 4 seconds. This results in a
//power duty cycle of approximately 1000/(1000 + 4000),
//or 20% (assuming negligeble boot time). This means
//that the battery will last about 5 times as long as
//if the Arduino had run constantly. #include "Utilities.h" #include "NS_energyShield2.h"
It's for an energy shield pro 2 got all the code and library's from their website NightShade Electronics - Home wasn't sure if this was an ardiuno problem or energy shield pro2 problem Thank for looking into it.
open C:\Users\WOUTEM~1\AppData\Local\Temp\arduino_build_665699\sketch\soilhumitidy.ino.cpp: Access is denied.
This sort of error could be caused by your antivirus software. Try TEMPORARILY disabling your antivirus for a single compilation to see if the problem goes away, then turn the antivirus back on. If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to whitelist the appropriate file, folder, or process so it doesn't interfere with compilation.