Avr gcc errors

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

Please help with this error,i want to compile the example source code,ime using winavr last version,i know its old but i only know how to use it,ive installed the avr studio toolchain too but not sure how to use it.any help with eather would be great,also i want to add the toolchain to my path,any idea what the command is,thanks anyone in advance.

 

C:\Users\Dunk\Desktop\Little Wire\Little-Wire-master(1)\Little-Wire-master\softw
are>make
Building library: littleWire...
gcc -I \include -L \lib -lusb -Ilibrary -O -g -D WIN -c library/littleWire.c
process_begin: CreateProcess(NULL, gcc -I \include -L \lib -lusb -Ilibrary -O -g
 -D WIN -c library/littleWire.c, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [littleWire] Error 2

C:\Users\Dunk\Desktop\Little Wire\Little-Wire-master(1)\Little-Wire-master\softw
are>

 

 

 

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

The above is trying to run "gcc". That is the wrong program. If you want to cross compile C code for AVR the program that does that is called avr-gcc. Just gcc is the host compiler (x86/AMD64) on your PC.

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

PS forgot to say that if this is Windows why on earth don't you just use AS7? Or, if your PC is not up to it get Atmel's "Tool chain for Windows" which may even be avr-gcc 5.4.0 by now.