avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Errors When Trying To Compile A Project Under A Newer AV


From: John Branthoover
Subject: [avr-gcc-list] Errors When Trying To Compile A Project Under A Newer AVR-GCC Package....
Date: Thu, 8 Jan 2004 15:41:28 -0500

Hello All,
        I have a C project that compiles fine under an older version of the 
avr-gcc
package.  I am not sure what version the package is, but I get the following
results when I run avr-gcc -v at the command prompt:

C:\Aim_C>avr-gcc -v
Reading specs from C:\AVRGCC\bin\..\lib\gcc-lib\avr\3.0\specs
Configured with:
./configure --target=avr --exec-prefix=/avrgcc --prefix=/avrgcc
 --build=i386-pc-mingw32 --host=i386-pc-mingw32 --disable-nls --enable-langu
ages
=c
Thread model: single
gcc version 3.0

        I have since tried to compile the same project under the WinAVR 20030913
package.  I have updated the makefile,  changed the include files to the new
ones used in WinAVR,  i.e.  <io.h> to <avr/io.h> etc...

        I now seem to get through the to linking part, (please excuse me for my
ignorance of use of the WinAVR compiler or system) and I get the following
errors:

Linking: Aim_Mon.elf
avr-gcc -mmcu=at90s8515 -I. -g -O2 -funsigned-char -funsigned-bitfields -fpa
ck-s
truct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=Aim_Debug.o  -std=
gnu9
9 Aim_Debug.o Aim_Initialize.o uart.o Display.o Fpga_Read_Write.o
Command_Proces
sor.o EEPROM_Read_Write.o   --output
Aim_Mon.elf -Wl,-Map=Aim_Mon.map,--cref -lm

D:\WinAVR\bin\..\lib\gcc-lib\avr\3.3\..\..\..\..\avr\lib\crts8515.o(.init9+0
x0):
 undefined reference to `main'
Display.o: In function `Display_Reset':
E:\WinAVR Test/Display.c:53: undefined reference to `PortC_Latch'
Display.o: In function `Clock_Toggle':
E:\WinAVR Test/Display.c:62: undefined reference to `PortB_Latch'
E:\WinAVR Test/Display.c:64: undefined reference to `PortB_Latch'
Display.o: In function `Set_Control_Word0':
E:\WinAVR Test/Display.c:90: undefined reference to `PortB_Latch'
E:\WinAVR Test/Display.c:107: undefined reference to `PortB_Latch'
Display.o: In function `Display_Init':
E:\WinAVR Test/Display.c:125: undefined reference to `PortB_Latch'
Display.o:E:\WinAVR Test/Display.c:130: more undefined references to
`PortB_Latc
h' follow
Fpga_Read_Write.o: In function `Fpga_Write':
E:\WinAVR Test/Fpga_Read_Write.c:53: undefined reference to `PortC_Latch'
E:\WinAVR Test/Fpga_Read_Write.c:53: undefined reference to `PortC_Latch'
E:\WinAVR Test/Fpga_Read_Write.c:56: undefined reference to `PortC_Latch'
E:\WinAVR Test/Fpga_Read_Write.c:56: undefined reference to `PortC_Latch'
E:\WinAVR Test/Fpga_Read_Write.c:57: undefined reference to `PortC_Latch'
Fpga_Read_Write.o:E:\WinAVR Test/Fpga_Read_Write.c:75: more undefined
references
 to `PortC_Latch' follow
make: *** [Aim_Mon.elf] Error 1

        As you can see,  I get a lot of "undefined reference to" errors.  What 
does
the term "undefined reference to" mean.  Can someone tell me where I can
find out more information.  I am sure that it is something simple that I am
doing wrong.

        Any information that you can give me will be greatly appreciated.  Thank
you for your patience and have a nice day.....






reply via email to

[Prev in Thread] Current Thread [Next in Thread]