RE: about compiling....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 4 Nov 2001, Jonathan Khoo wrote:

> Hi guys,
> 
> Just to add, I am working on netlink stuff. So if I want to include
> things like <stdio.h> and <linux/rtnetlink.h> etc.
> How can I compile the source?
> 

Does the following procedure help ?? Just check the errors and then check
the correspoding header files and then try switching the order of inclusion
of header files. 

I suppose the following order does'nt print any error while the man page of
rtnetlink keeps the inclusion of sys/socket.h after rtnetlink.h which gave me
errors like you are reporting. Hope this helps. By the way which kernel version
u are using ?


<snip>

#include <asm/types.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
 
#include <stdio.h>
 
</snip>


Seeing the netlink.h and rtnetlink.h , at various places are there declaration 
like sa_family_t and other types which correspond to socket structures and some
to asm/types.h. But no header files are included in the same for these sructures
. Can somebody throw some light on this ?

-regards
neeraj

PS: By the way, this is my first post on the list. But I seriously love this
list.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux