I need to write a program for linux( lubuntu ) but I have a couple of problems. Unfortunately for some reason the header files in the /usr/include folder does not seem to be the right ones. Its like they are stripped down versions. For instance if you check Lubuntus /usr/include/pci.h its only roughly 40 lines long where the original version is much much bigger. So I went on a little hunt for the normal developer linux headers and ive found all of them in one place "/usr/src/linux-header-3.13.0-32-generic" . They should be the right ones though cause the headers have all of the functions I need.
My problem now though is Resource Linking in Eclipse C development version. Ive tried dragging the file into the Project folder (Needless to say will be a mess later on) but it didn't work. Ive tried Right clicking on project folder -> New -> Folder -> Advanced -> "Link to alternate location(Linked Folder)" -> linked the "/usr/src/linux-header-3.13.0-32-generic" . When include headers in the source it just seems to never be able to find them when you try and build the source. Doing it like the method above did make me wonder how the Libraries that the headers need to work with will be included.
So my question are. How can I link the headers from "/usr/src/linux-header-3.13.0-32-generic" into my project so that I can for example say #include and it actually then refers to the one in the "/usr/src/linux-header-3.13.0-32-generic" file instead of saying #include"/usr/src/linux-header-3.13.0.32-generic/include/linux/module.h" ?
How does this include the libraries that the headers in "/usr/src/linux-header-3.13.0-32-generic" need to work with?
If I have to link the libraries as well how do I do that in Eclipse?