Hi,
I tried to build a bit of code having one statement as:
some_variable=1000000 / HZ;
then getting error:
HZ was not declared in this scope.
This code can successfully executed on other O/S like linux.
I tried out little about this error.
In /usr/include/asm-x86_64/param.h HZ is define as
#ifdef KERNEL
#define HZ CONFIG_HZ
…
…
#endif
As I provide KERNEL with compiler option then getting same error for “CONFIG_HZ”.
O/S details:
$uname -a
Linux obsuse10 2.6.18.2-34-default #1 SMP…x86_64 x86_64 x86_64 GNU/Linux
please help me to resolve this.
Is there any requirement to apply o/s related patch or this is related to other issue.
Thanks in advance.