go_away

Author Topic: problem arise in compiling AVR studio4.14  (Read 915 times)

0 Members and 1 Guest are viewing this topic.

Offline subhechhaTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
problem arise in compiling AVR studio4.14
« on: January 20, 2012, 08:02:16 AM »
hello .....i'm using window 7 ,64 bit as operating system. i have installed avr studio4.14. but the thing is the compiler cannot compile the program......i just like to know what exact the matter is ????   plzz help it's too urgent..

well ....i have attached the program .it's a line follwing one ....in case there is any mistake in program itself then kindly help me to rectify....

thank u....

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: problem arise in compiling AVR studio4.14
« Reply #1 on: January 20, 2012, 09:31:28 AM »
It would be more helpfull to see what error message You get when compiler fails.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline subhechhaTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: problem arise in compiling AVR studio4.14
« Reply #2 on: January 20, 2012, 10:31:02 AM »
well...thanks for reply............now i feel quite fortunate coz ma compiler compiled but still doesnot producing .hex file and the stated warning is .... 


 avr-gcc.exe  -mmcu=atmega16 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT kshitij_stalker1.o -MF dep/kshitij_stalker1.o.d  -c  ../kshitij_stalker1.c
In file included from ../kshitij_stalker1.c:2:
c:/winavr-20090313/lib/gcc/../../avr/include/util/delay.h:85:3: warning: #warning "F_CPU not defined for <util/delay.h>"
Build succeeded with 1 Warnings...

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: problem arise in compiling AVR studio4.14
« Reply #3 on: January 20, 2012, 08:23:35 PM »
Compiler tels You exactly why it could not compile code correctly. Have a look at this:
Quote
avr-gcc.exe  -mmcu=atmega16 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT kshitij_stalker1.o -MF dep/kshitij_stalker1.o.d  -c  ../kshitij_stalker1.c
In file included from ../kshitij_stalker1.c:2:
c:/winavr-20090313/lib/gcc/../../avr/include/util/delay.h:85:3: warning: #warning "F_CPU not defined for <util/delay.h>"
Build succeeded with 1 Warnings...

In case You did not get it already, add #define F_CPU (clock speed in Hz)UL after Your #includes.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

 


Get Your Ad Here