LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-08-2008, 07:57 AM   #1
deedhnd
LQ Newbie
 
Registered: Apr 2008
Posts: 16

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anomaly With Compiling SMP 2.6.21.5 Kernel Woodsman Slackware 7 03-10-2008 12:51 PM
Kernel 2.6.19 throwing up hd read errors cr9c1 Slackware 6 12-18-2006 04:01 PM
GCC First Pass throwing errors...pls help! chakkaradeepcc Linux From Scratch 2 04-11-2005 01:20 PM
compiling SMP kernel WMD Slackware 8 08-08-2004 09:34 AM
Compiling SMP Kernel outlawpsd Slackware 4 10-31-2003 09:09 AM


All times are GMT -5. The time now is 10:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration