Hi Everyone,
I have been trying to search through the forum about
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Nathan Slattengren\Documents\Arduino\libraries\Adafruit-MAX31855-library-master" "-IC:\Users\Nathan Slattengren\Documents\Arduino\libraries\LCD16x2" "C:\Users\Nathan Slattengren\Documents\Arduino\libraries\LCD16x2\LCD16x2.cpp" -o "C:\Users\NATHAN~1\AppData\Local\Temp\arduino_build_690017\libraries\LCD16x2\LCD16x2.cpp.o"
Compiling core...
Using precompiled core
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\NATHAN~1\AppData\Local\Temp\arduino_build_690017/coffee_roaster_v7.ino.elf" "C:\Users\NATHAN~1\AppData\Local\Temp\arduino_build_690017\sketch\coffee_roaster_v7.ino.cpp.o" "C:\Users\NATHAN~1\AppData\Local\Temp\arduino_build_690017\libraries\SPI\SPI.cpp.o" "C:\Users\NATHAN~1\AppData\Local\Temp\arduino_build_690017\libraries\Wire\Wire.cpp.o" "C:\Users\NATHAN~1\AppData\Local\Temp\arduino_build_690017\libraries\Wire\utility\twi.c.o" "C:\Users\NATHAN~1\AppData\Local\Temp\arduino_build_690017\libraries\Adafruit-MAX31855-library-master\Adafruit_MAX31855.cpp.o" "C:\Users\NATHAN~1\AppData\Local\Temp\arduino_build_690017\libraries\LCD16x2\LCD16x2.cpp.o" "C:\Users\NATHAN~1\AppData\Local\Temp\arduino_build_690017/..\arduino_cache_563219\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\Users\NATHAN~1\AppData\Local\Temp\arduino_build_690017" -lm
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/lib/avr5/crtatmega328p.o:(.init9+0x0): undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI
Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire
Using library Adafruit-MAX31855-library-master at version 1.0.3 in folder: C:\Users\Nathan Slattengren\Documents\Arduino\libraries\Adafruit-MAX31855-library-master
Using library LCD16x2 in folder: C:\Users\Nathan Slattengren\Documents\Arduino\libraries\LCD16x2 (legacy)
exit status 1
Error compiling for board Arduino/Genuino Uno.
This is happening with the following code that is attached.
For some reason this only occurs when the setting Board: "Arduino/Genuino Uno" is selected. I have tried to other settings and the program will compile correctly. I am really not sure why my code is barfing at this specific point. I had moved between computers and have just recently installed 1.8.5 onto the system so it should be up to date.
Again any help is appreciated and let me know what I can to help solve this issue.
Thanks,
Nathan
coffee_roaster_v7.ino (15.2 KB)