Ok...everything was going ok then I got this error...hehe. I think
I'm finding every problem that someone can encounter here.
Linking: rs232_stdio.elf
arm-elf-gcc -mcpu=arm7tdmi -I. -g -DROM_RUN -O0 -Wall
-Wstrict-prototypes -Wcast-align -Wcast-qual -Wimplicit
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wswitch
-Wredundant-decls -Wreturn-type -Wshadow -Wstrict-prototypes -Wunused
-Wa,-adhlns=build/crt0.o -std=gnu99 -MD -MP -MF
.dep/rs232_stdio.elf.d build/crt0.o rs232_stdio.o --output
rs232_stdio.elf -nostartfiles -Wl,-Map=rs232_stdio.map,--cref -lc
-lgcc -lnewlib-lpc -lm -lownet-lpc -Tbuild/LPC2106-ROM.ld
c:/winarm/bin/../lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib\libnewlib-lpc.a(sys_time.o):
In function `counts_to_us':sys_time.c:(.text+0x30): undefined
reference to `__udivdi3'
collect2: ld returned 1 exit status
make.exe: *** [rs232_stdio.elf] Error 1
Now this is the function count_to_us()..
static unsigned int counts_to_us( unsigned int counts)
{
unsigned int us;
/* Convert the counts to microseconds taking the actual clock */
/* rate into account. Note that as long as */
/* CLOCK_SPEED/(timing_scale_factor * COUNTS_PER_US) is less */
/* than 1 this cannot overflow a long. With nominal CLOCK_SPEED*/
/* at 10000000 this will be true as long as the actual clock */
/* speed is > 1000000. */
us = (unsigned int)((counts * (unsigned long long)CLOCK_SPEED) /
(timing_scale_factor * COUNTS_PER_US));
return us;
}
Is the problem trying to do the long long math???
J. Stuck again :)Message
Re: Linking Error....iButton Test program Robert Adsett's Port
2006-04-10 by ocnek1
Attachments
- No local attachments were found for this message.