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

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

Re: [avr-gcc-list] problems using time.h on freebsd 4.10


From: Daniel O'Connor
Subject: Re: [avr-gcc-list] problems using time.h on freebsd 4.10
Date: Thu, 1 Sep 2005 17:47:50 +0930
User-agent: KMail/1.8.1

On Thursday 01 September 2005 16:47, Timothy Smith wrote:
> # avr-gcc -I/usr/include -g -Os -mmcu=atmega32 led.c
> /var/tmp//ccJbKrxY.o(.text+0x16): In function `main':
> /home/timothy/AVR/led.c:11: undefined reference to `time'
> /var/tmp//ccJbKrxY.o(.text+0x2c):/home/timothy/AVR/led.c:13: undefined
> reference to `time'
> /var/tmp//ccJbKrxY.o(.text+0x4c):/home/timothy/AVR/led.c:15: undefined
> reference to `time'
> /var/tmp//ccJbKrxY.o(.text+0x62):/home/timothy/AVR/led.c:17: undefined
> reference to `time'

AVR libc has no time functions so you can't do it that way.

Your -I/usr/include makes it use the FreeBSD includes (in addition to the AVR 
gcc ones).

You are confusing the FreeBSD build environment with the AVR one.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Attachment: pgpPT4ZPHDgY7.pgp
Description: PGP signature


reply via email to

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