Why No rule to make target ?

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello while i compile the source code, the following output appear.

Compiling: main.c
avr-gcc -c -mmcu=at90s8515 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst -std=gnu99 main.c -o main.o
main.c:12: warning: return type of `main' is not `int'
make: *** No rule to make target `1.o', needed by `main.elf'. Stop.

May i know the solution and ideas for the warning and the 'No rule to make target '1.o', needed by main.elf'.stop

thanks for your help.. :)

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Is your makefile corrupted or something?, try posting it here.

-Colin