Please forgive me since I'm a newbie in Linux Programming. (I've been programming in Windows for a long time)
I'm trying to compile a drhystone C code program that I obtained from here
This is a script and I actually downloaded the script and ran "sh dhry-c" to get all my C-files.
Then, I type in gcc dhry_1.c -o dhrybench and I get this following error:
/usr/include/sys/times.h:49: error: previous declaration of `times'
dhry_1.c: In function `main':
dhry_1.c:266: error: `HZ' undeclared (first use in this function)
dhry_1.c:266: error: (Each undeclared identifier is reported only once
dhry_1.c:266: error: for each function it appears in.)
I'm not exactly sure why I got this error because the "HZ" function is defined in one of the header files.
Is there an option I need to put into the gcc command line or is this benchmark broken?
Please respond as soon as possible. Time is very limited. Thanks a lot