Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Compiler m8535 examples error.(AvrX)

Compiler m8535 examples error.(AvrX)

2005-03-24 by Luke.Wei

Dear all,
    I don't fixed examples source code , but always compiler error, 
Please tell me how should i do ? thanks a lot . 
   Luke 

C:\AVRX\avrxx\Examples>C:\WINAVR\UTILS\BIN\MAKE.EXE gcc
avr-gcc -c Timers.c -I. -I../avrx -I/avr/inc -Os -Wall -
mmcu=at90s8535 -g -o Tim
ers.o
Timers.c: In function `__vector_9':
Timers.c:36: warning: implicit declaration of function `outp'
Timers.c: In function `task1':
Timers.c:53: warning: implicit declaration of function `inp'
avr-gcc Timers.o ../avrx/avrx.a -Wl,-Map=Timers.map,--cref,-v -
mmcu=at90s8535 -o
 Timers.elf
GNU ld version 2.15 + coff-avr-patch (20030831)
Timers.o(.text+0xe): In function `__vector_9':
C:\AVRX\avrxx\Examples/Timers.c:36: undefined reference to `outp'
Timers.o(.text+0x28): In function `task1':
C:\AVRX\avrxx\Examples/Timers.c:53: undefined reference to `inp'
Timers.o(.text+0x36):C:\AVRX\avrxx\Examples/Timers.c:53: undefined 
reference to
`outp'
Timers.o(.text+0x4c):C:\AVRX\avrxx\Examples/Timers.c:57: undefined 
reference to
`inp'
Timers.o(.text+0x56):C:\AVRX\avrxx\Examples/Timers.c:57: undefined 
reference to
`outp'
Timers.o(.text+0x68): In function `task2':
C:\AVRX\avrxx\Examples/Timers.c:71: undefined reference to `inp'
Timers.o(.text+0x76):C:\AVRX\avrxx\Examples/Timers.c:71: undefined 
reference to
`outp'
Timers.o(.text+0x90): In function `main':
C:\AVRX\avrxx\Examples/Timers.c:79: undefined reference to `outp'
Timers.o(.text+0x9e):C:\AVRX\avrxx\Examples/Timers.c:80: undefined 
reference to
`outp'
Timers.o(.text+0xa8):C:\AVRX\avrxx\Examples/Timers.c:81: undefined 
reference to
`outp'
Timers.o(.text+0xb2):C:\AVRX\avrxx\Examples/Timers.c:82: undefined 
reference to
`outp'
Timers.o(.text+0xbc):C:\AVRX\avrxx\Examples/Timers.c:84: more 
undefined referenc
es to `outp' follow
C:\WINAVR\UTILS\BIN\MAKE.EXE: *** [Timers.elf] Error 1

RE: [AVR-Chat] Compiler m8535 examples error.(AvrX)

2005-03-24 by Larry Barello

Luke: the latest WinAVR compiler has removed all references to "inp" and
"outp"  You can replace this with direct PORT references.  E.g.

SomeVar = inp(PINB);

change to:

SomeVar = PINB;

Or if you want, do this in the AvrX header file (or some other place)

#define inp(A) (A)
#define outp(A) (A)

Good luck!
Show quoted textHide quoted text
-----Original Message-----
From: Luke.Wei [mailto:mrddt4todie@yahoo.com.tw]
Sent: Wednesday, March 23, 2005 5:27 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Compiler m8535 examples error.(AvrX)




Dear all,
    I don't fixed examples source code , but always compiler error,
Please tell me how should i do ? thanks a lot .
   Luke

C:\AVRX\avrxx\Examples>C:\WINAVR\UTILS\BIN\MAKE.EXE gcc
avr-gcc -c Timers.c -I. -I../avrx -I/avr/inc -Os -Wall -
mmcu=at90s8535 -g -o Tim
ers.o
Timers.c: In function `__vector_9':
Timers.c:36: warning: implicit declaration of function `outp'
Timers.c: In function `task1':
Timers.c:53: warning: implicit declaration of function `inp'
avr-gcc Timers.o ../avrx/avrx.a -Wl,-Map=Timers.map,--cref,-v -
mmcu=at90s8535 -o
 Timers.elf
GNU ld version 2.15 + coff-avr-patch (20030831)
Timers.o(.text+0xe): In function `__vector_9':
C:\AVRX\avrxx\Examples/Timers.c:36: undefined reference to `outp'
Timers.o(.text+0x28): In function `task1':
C:\AVRX\avrxx\Examples/Timers.c:53: undefined reference to `inp'
Timers.o(.text+0x36):C:\AVRX\avrxx\Examples/Timers.c:53: undefined
reference to
`outp'
Timers.o(.text+0x4c):C:\AVRX\avrxx\Examples/Timers.c:57: undefined
reference to
`inp'
Timers.o(.text+0x56):C:\AVRX\avrxx\Examples/Timers.c:57: undefined
reference to
`outp'
Timers.o(.text+0x68): In function `task2':
C:\AVRX\avrxx\Examples/Timers.c:71: undefined reference to `inp'
Timers.o(.text+0x76):C:\AVRX\avrxx\Examples/Timers.c:71: undefined
reference to
`outp'
Timers.o(.text+0x90): In function `main':
C:\AVRX\avrxx\Examples/Timers.c:79: undefined reference to `outp'
Timers.o(.text+0x9e):C:\AVRX\avrxx\Examples/Timers.c:80: undefined
reference to
`outp'
Timers.o(.text+0xa8):C:\AVRX\avrxx\Examples/Timers.c:81: undefined
reference to
`outp'
Timers.o(.text+0xb2):C:\AVRX\avrxx\Examples/Timers.c:82: undefined
reference to
`outp'
Timers.o(.text+0xbc):C:\AVRX\avrxx\Examples/Timers.c:84: more
undefined referenc
es to `outp' follow
C:\WINAVR\UTILS\BIN\MAKE.EXE: *** [Timers.elf] Error 1






Yahoo! Groups Links

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.