Go Down

Topic: AVRProjectIDE - Editor for AVR/Arduino Projects (Read 12 times) previous topic - next topic

Graynomad

Hi Frank,

Just downloaded 103 and love the look of it but cannot get the simplest prog to compile. It's just an empty setup() and loop() but I get 8 errors from WInterrupts.c about undeclared INT0, INT1 etc.

______
Rob



Rob Gray aka the GRAYnomad www.robgray.com

frank26080115

i'm going to need a lot more detail than that to help, I need the details about the errors, the build log, you need to tell me how you configured your project, and what are your files.
Freelance engineer, consultant, contractor. Graduated from UW in 2013.

Graynomad

OK,

the only file is

Code: [Select]

void setup()
{

}

void loop()
{

}


I created a new Arduino project using the wizard.

Warnings/errors, is there any way to export them, a verbose switch or something, otherwise I can provide a screen shot.
.
Build log (I assume this is it)

Quote
Build Failed with 8 errors
(.data + .bss + .noinit)
Data:        211 bytes (10.3% Full)
(.text + .data + .bootloader)
Program:    2926 bytes (8.9% Full)
Device: atmega328p
----------------
AVR Memory Usage
Execute: avr-size -C --mcu=atmega328p Sketch_12_22_2010_5.elf
Execute: avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings  -O ihex Sketch_12_22_2010_5.elf Sketch_12_22_2010_5.eep
Execute: avr-objcopy -R .eeprom -R .fuse -R .lock -R .signature -O ihex Sketch_12_22_2010_5.elf Sketch_12_22_2010_5.hex
Deleted: 'HardwareSerial.o', 'pins_arduino.o', 'Print.o', 'Tone.o', 'wiring.o', 'wiring_analog.o', 'wiring_digital.o', 'wiring_pulse.o', 'wiring_shift.o', 'WMath.o', 'WString.o', 'arduino_temp_main.o', 'HardwareSerial.d', 'pins_arduino.d', 'Print.d', 'Tone.d', 'wiring.d', 'wiring_analog.d', 'wiring_digital.d', 'wiring_pulse.d', 'wiring_shift.d', 'WMath.d', 'WString.d', 'arduino_temp_main.d',
Deleting: HardwareSerial.o pins_arduino.o Print.o Tone.o wiring.o wiring_analog.o wiring_digital.o wiring_pulse.o wiring_shift.o WMath.o WString.o arduino_temp_main.o  libSketch_12_22_2010_5.a HardwareSerial.d pins_arduino.d Print.d Tone.d wiring.d wiring_analog.d wiring_digital.d wiring_pulse.d wiring_shift.d WMath.d WString.d arduino_temp_main.d  libSketch_12_22_2010_5.a
Execute: avr-gcc -mmcu=atmega328p -Wl,-Map=Sketch_12_22_2010_5.map -Wl,--gc-sections -O0 HardwareSerial.o pins_arduino.o Print.o Tone.o wiring.o wiring_analog.o wiring_digital.o wiring_pulse.o wiring_shift.o WMath.o WString.o arduino_temp_main.o   -lm -lc -o Sketch_12_22_2010_5.elf
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
Execute: avr-g++ -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT arduino_temp_main.o  -c  -std=c99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/arduino_temp_main.cpp"
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
Execute: avr-g++ -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT WString.o  -c  -std=c99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/WString.cpp"
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
Execute: avr-g++ -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT WMath.o  -c  -std=c99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/WMath.cpp"
Execute: avr-gcc -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT wiring_shift.o  -c  -std=gnu99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/wiring_shift.c"
Execute: avr-gcc -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT wiring_pulse.o  -c  -std=gnu99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/wiring_pulse.c"
Execute: avr-gcc -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT wiring_digital.o  -c  -std=gnu99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/wiring_digital.c"
Execute: avr-gcc -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT wiring_analog.o  -c  -std=gnu99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/wiring_analog.c"
Execute: avr-gcc -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT wiring.o  -c  -std=gnu99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/wiring.c"
####Error: object file not created at D:\temp\output\WInterrupts.o
Execute: avr-gcc -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT WInterrupts.o  -c  -std=gnu99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/WInterrupts.c"
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
Execute: avr-g++ -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT Tone.o  -c  -std=c99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/Tone.cpp"
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
Execute: avr-g++ -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT Print.o  -c  -std=c99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/Print.cpp"
Execute: avr-gcc -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT pins_arduino.o  -c  -std=gnu99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/pins_arduino.c"
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
Execute: avr-g++ -I"D:\temp" -I"C:\Program Files\AVRProjectIDE\arduino\core" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp" -I"C:\Users\Rob\AppData\Roaming\AVRProjectIDE\temp"  -mmcu=atmega328p -DF_CPU=16000000UL -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections  -Wall -gdwarf-2 -MD -MP -MT HardwareSerial.o  -c  -std=c99 "C:/Users/Rob/AppData/Roaming/AVRProjectIDE/temp/HardwareSerial.cpp"



______
Rob


Rob Gray aka the GRAYnomad www.robgray.com

frank26080115

There is no way to export it, a screenshot would help, I can't replicate your problem
Freelance engineer, consultant, contractor. Graduated from UW in 2013.

Graynomad

Rob Gray aka the GRAYnomad www.robgray.com

Go Up