Reply to post: Re: 2038

Y2K quick-fix crick? 1920s come roaring back after mystery blip at UK's vehicle licensing agency

Paul Crawford Silver badge

Re: 2038

Just to add you can easily include time_t in to the same simple test program. But on typical 64-bit Linux box that is going to fail (as time_t is 64-bit and not the 32-bit unsigned used for this demo) so you need to add 32-bit support for testing it as a 32-bit program. For example:

sudo apt-get install gcc-multilib g++-multilib

Then compile for 32-bit machine with:

gcc -Wall -m32 itest.c -o itest

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

SUBSCRIBE TO OUR WEEKLY TECH NEWSLETTER

Biting the hand that feeds IT © 1998–2020