LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Compiling with smp.h throwing errors in IA 64 2.6 kernel SLES10 (https://www.linuxquestions.org/questions/linux-server-73/compiling-with-smp-h-throwing-errors-in-ia-64-2-6-kernel-sles10-633905/)

deedhnd 04-08-2008 07:57 AM

Compiling with smp.h throwing errors in IA 64 2.6 kernel SLES10
 
I have written a simple program

#include<linux/smp.h>
int main()
{
unsigned int a;
a=get_cpu();
return 0;
}

It is throwing errors related to linux header files in /usr/include...
how can I get rid of this compilation error??

If any patch is available for this please let me know
Also, if we can get current cpuid by some other means so as to avoid these errors, please tell me


All times are GMT -5. The time now is 02:13 PM.