My problem is I am getting an undefined reference error in linux g++
cpufreq.h
is in usr/include
directory and I included #include <cpufreq.h>
. This has declaration for cpufreq_get_freq_kernel()
But when I call cpufreq_get_freq_kernel()
, it gets a linker error:
undefined reference to `cpufreq_get_freq_kernel'
I am using netbeans to compile the program.
Any solution?