This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: question about gettimeofday()?
- To: li hui <lhbyron at yahoo dot com>
- Subject: Re: [ECOS] question about gettimeofday()?
- From: Jesper Skov <jskov at redhat dot com>
- Date: 09 Nov 2001 09:40:12 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- References: <20011109081015.95464.qmail@web14703.mail.yahoo.com>
>>>>> "li" == li hui <lhbyron@yahoo.com> writes:
li> In my program ,I use function gettimeofday() which is defined in
li> the sys/time.h.But It always note me undefined reference to
li> gettimeofday when compiling. please tell me how can I enactive
li> this function.
You can't. The function is not defined in eCos. It's in the header
file because that comes from the net stack - which appears to provide
its own implementation. See net/tcpip/current/tests/nc_test_master.c
Jesper