I can't seem to compile the sample project /examples/avr/avrtest.c
* I'm on a windows machine.
* I replaced all / with \.
* I'm using WinAVR-20080610
I tried both dos-prompt commandline (from file 'compile'), and with "make avrtest" from the command prompt, while being in the /examples/avr/ folder. I
Both fail.
This is what is returned:
D:\efsl\examples\avr>make avrtest
make -C D:\efsl avr
make[1]: Entering directory `D:/efsl'
make -C src/base/
make[2]: Entering directory `D:/efsl/src/base'
avr-ar rcs efsl-base.a debug.o disc.o efs.o extract.o sextract.o interface.o iom
an.o partition.o plibc.o
make[2]: Leaving directory `D:/efsl/src/base'
cp src/base/efsl-base.a lib/libefsl-base.a
make -C src/fs/vfat/
make[2]: Entering directory `D:/efsl/src/fs/vfat'
avr-ar rcs efsl-fs-vfat.a dir.o fat.o file.o fs.o ls.o mkfs.o time.o ui.o
make[2]: Leaving directory `D:/efsl/src/fs/vfat'
cp src/fs/vfat/efsl-fs-vfat.a lib/libefsl-fs-vfat.a
make -C src/protocols/sdcard_spi/
make[2]: Entering directory `D:/efsl/src/protocols/sdcard_spi'
avr-ar rcs efsl-prot-sdspi.a sd.o
make[2]: Leaving directory `D:/efsl/src/protocols/sdcard_spi'
cp src/protocols/sdcard_spi/efsl-prot-sdspi.a lib/libefsl-prot-sdspi.a
make -C src/hwdrivers/atmega_spi/
make[2]: Entering directory `D:/efsl/src/hwdrivers/atmega_spi'
avr-ar rcs efsl-hwd-atmega_spi.a atmega_spi.o
make[2]: Leaving directory `D:/efsl/src/hwdrivers/atmega_spi'
cp src/hwdrivers/atmega_spi/efsl-hwd-atmega_spi.a lib/libefsl-hwd-atmega_spi.a
make[1]: Leaving directory `D:/efsl'
avr-gcc -g3 -Wall -mmcu=atmega128 -Os -I D:\efsl\src\base\include -I D:\efsl\src
\include -I D:\efsl\src\fs\vfat\include -I D:\efsl\src\hwdrivers\atmega_spi\incl
ude -I D:\efsl\src\protocols\sdcard_spi\include -I D:\efsl\conf -o avrtest.o av
rtest.c -L D:\efsl\lib -lefsl-base -lefsl-fs-vfat -lefsl-hwd-atmega_spi -lefsl-p
rot-sdspi
avrtest.c:11: warning: return type of 'main' is not 'int'
avrtest.c: In function 'main':
avrtest.c:70: warning: pointer targets in passing argument 3 of 'file_read' diff
er in signedness
avrtest.c:72: warning: pointer targets in passing argument 3 of 'file_write' dif
fer in signedness
C:\Users\admin\AppData\Local\Temp/ccSitj26.o: In function `main':
D:\efsl\examples\avr/avrtest.c:48: undefined reference to `efsl_initStorage'
D:\efsl\examples\avr/avrtest.c:53: undefined reference to `efsl_initFs'
D:\efsl\lib\libefsl-fs-vfat.a(file.o): In function `file_fclose':
D:\efsl\src\fs\vfat/file.c:342: undefined reference to `memClr'
D:\efsl\lib\libefsl-fs-vfat.a(file.o): In function `file_fopen':
the list with 'undefined reference to....' goed on and on....
Can anybody help me?
thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I can't seem to compile the sample project /examples/avr/avrtest.c
* I'm on a windows machine.
* I replaced all / with \.
* I'm using WinAVR-20080610
I tried both dos-prompt commandline (from file 'compile'), and with "make avrtest" from the command prompt, while being in the /examples/avr/ folder. I
Both fail.
This is what is returned:
D:\efsl\examples\avr>make avrtest
make -C D:\efsl avr
make[1]: Entering directory `D:/efsl'
make -C src/base/
make[2]: Entering directory `D:/efsl/src/base'
avr-ar rcs efsl-base.a debug.o disc.o efs.o extract.o sextract.o interface.o iom
an.o partition.o plibc.o
make[2]: Leaving directory `D:/efsl/src/base'
cp src/base/efsl-base.a lib/libefsl-base.a
make -C src/fs/vfat/
make[2]: Entering directory `D:/efsl/src/fs/vfat'
avr-ar rcs efsl-fs-vfat.a dir.o fat.o file.o fs.o ls.o mkfs.o time.o ui.o
make[2]: Leaving directory `D:/efsl/src/fs/vfat'
cp src/fs/vfat/efsl-fs-vfat.a lib/libefsl-fs-vfat.a
make -C src/protocols/sdcard_spi/
make[2]: Entering directory `D:/efsl/src/protocols/sdcard_spi'
avr-ar rcs efsl-prot-sdspi.a sd.o
make[2]: Leaving directory `D:/efsl/src/protocols/sdcard_spi'
cp src/protocols/sdcard_spi/efsl-prot-sdspi.a lib/libefsl-prot-sdspi.a
make -C src/hwdrivers/atmega_spi/
make[2]: Entering directory `D:/efsl/src/hwdrivers/atmega_spi'
avr-ar rcs efsl-hwd-atmega_spi.a atmega_spi.o
make[2]: Leaving directory `D:/efsl/src/hwdrivers/atmega_spi'
cp src/hwdrivers/atmega_spi/efsl-hwd-atmega_spi.a lib/libefsl-hwd-atmega_spi.a
make[1]: Leaving directory `D:/efsl'
avr-gcc -g3 -Wall -mmcu=atmega128 -Os -I D:\efsl\src\base\include -I D:\efsl\src
\include -I D:\efsl\src\fs\vfat\include -I D:\efsl\src\hwdrivers\atmega_spi\incl
ude -I D:\efsl\src\protocols\sdcard_spi\include -I D:\efsl\conf -o avrtest.o av
rtest.c -L D:\efsl\lib -lefsl-base -lefsl-fs-vfat -lefsl-hwd-atmega_spi -lefsl-p
rot-sdspi
avrtest.c:11: warning: return type of 'main' is not 'int'
avrtest.c: In function 'main':
avrtest.c:70: warning: pointer targets in passing argument 3 of 'file_read' diff
er in signedness
avrtest.c:72: warning: pointer targets in passing argument 3 of 'file_write' dif
fer in signedness
C:\Users\admin\AppData\Local\Temp/ccSitj26.o: In function `main':
D:\efsl\examples\avr/avrtest.c:48: undefined reference to `efsl_initStorage'
D:\efsl\examples\avr/avrtest.c:53: undefined reference to `efsl_initFs'
D:\efsl\lib\libefsl-fs-vfat.a(file.o): In function `file_fclose':
D:\efsl\src\fs\vfat/file.c:342: undefined reference to `memClr'
D:\efsl\lib\libefsl-fs-vfat.a(file.o): In function `file_fopen':
the list with 'undefined reference to....' goed on and on....
Can anybody help me?
thank you.
Ok,
I switched to V0,2 and got it compiled and programmed, but still running into problems.. see my other thread..
PaWoN