This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: question about gettimeofday()?


>>>>> "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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]