LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-20-2004, 11:10 AM   #1
reejadb04
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Question linux headers


Can anyone explain why almost all the funtions declared in '/src/include/linux' or '/src/include/asm' cannot be used ?. I mean, why such a simple program like this:

#include <linux/mm.h>
#include <asm/meminit.h>

int main ()
{
exit(0);
}

generates errors ?. Am I missing something ?

Thank for the answers.
 
Old 10-20-2004, 11:28 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 110Reputation: 110
Re: linux headers

Quote:
Originally posted by reejadb04
Can anyone explain why almost all the funtions declared in '/src/include/linux' or '/src/include/asm' cannot be used ?. I mean, why such a simple program like this:
That 's because most of them, if not all, are only to be used when you are programming linux-the-kernel itself (or a module).

You don't need them for a normal (user-space) program either...
 
  


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
about linux-libc-headers-2.6.12... ParticleHunter Linux From Scratch 3 09-05-2005 09:23 AM
cp linux-libc-headers to ??? joirnange Linux - Newbie 11 01-16-2005 03:11 AM
Linux 2.4.26 headers toucents Linux From Scratch 1 09-22-2004 09:46 PM
Where to download Linux Headers? dbzw Linux - Newbie 2 02-23-2004 07:23 PM
linux headers and verson.h SciYro Linux - Newbie 4 12-09-2003 01:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:37 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration