a local group of student trying to build an arduino lc meter (Arduino LC Meter With Frequency Measurement - Exhibition - Arduino Forum) came to me for help under the mistaken impression i was an arduino expert. blink runs fine but trying to compile the attached program under 1.5.8 then 1.6.3 we get the following message:
Arduino: 1.6.3 (Windows XP), Board: "Arduino Uno"
Build options changed, rebuilding all
G:\arduino-1.6.3\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10603 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IG:\arduino-1.6.3\hardware\arduino\avr\cores\arduino -IG:\arduino-1.6.3\hardware\arduino\avr\variants\standard C:\DOCUME~1\r\LOCALS~1\Temp\build5195488316362091764.tmp\LCFrequencyMeter.cpp -o C:\DOCUME~1\r\LOCALS~1\Temp\build5195488316362091764.tmp\LCFrequencyMeter.cpp.o
LCFrequencyMeter.pde:13:24: fatal error: WConstants.h: No such file or directory
compilation terminated.
Error compiling.
maybe due to his peculiar flavor running under "netbeans" or arduino team switching things up again. any suggestions?
LCFrequencyMeter.pde (5.52 KB)
Change any lines that #include <Wconstants.h> to #include <Arduino.h>
After doing what UKHeliBob suggested, you will run into another compiler error. Comment out these lines.
#include <wiring.h>
#include <WProgram.h>
thanks for fast replies. i tried:
#include <arduino.h> //WConstants.h>
//#include <wiring.h>
#include <wiring_private.h>
#include <math.h>
//**#include <WProgram.h>
but then get:
LCFrequencyMeter02.ino:19:27: fatal error: EEPROM/EEPROM.h: No such file or directory
there was F:\arduino-1.6.3\hardware\arduino\avr\libraries\EEPROM\EEPROM.h
so i copied it into F:\arduino-1.6.3\libraries\EEPROM\EEPROM.h and still nogo.
same for LiquidCrystal/LiquidCrystal.h and FreqCounter/FreqCounter.h
thank you, the initial suggestion solved everything. biggest problem was not realizing it was necessary to restart the ide after making certain changes. also some issue with serial monitor failing and in most cases restarting fixes that too. on rare occasions rebooting os needed. problems are rare now and thanks again.
UKHeliBob:
Did you use
#include arduino.h
or
#include Arduino.h
Neither of which is valid syntax....
Regards,
Ray L.
hah... they forgot quotes or enclose symbols. fortunately i knew this so avoided that.
RayLivingston:
Neither of which is valid syntax....
Regards,
Ray L.
Yes I know, but what I was getting at was the filename, not the syntax and the OP seems to have got the point.