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

problems using localtime and gettimeofday



The functions gettimeofday and localtime are , I believe, standard Linux
functions. These functions worked using cris-1.11, linux-2.4.3, and
devboard_lx-1.0.0.
Howver, they do not work using cris-1.13, linux-2.4.5, and
devboard_lx-2.0.0.

I am attaching a timetest.tgz which demonstrates this problem. To access
the files please do tar -zxvf timetest.tgz in a directory of your choosing.
The source file is timetest.cc and the makefile is makefile.timetest.

To see my problem:

make -f makefile.timetest clean
make -f makefile.timetest cris-axis-linux-gnu
make -f makefile.timetest

You will can compile errors.

It will compile and run under Linux as follows:
make -f makefile.timetest clean
make -f makefile.timetest
./timetest


Thanks in advance for your help.

Mark Schapira

(See attached file: timetest.tgz)

timetest.tgz