Why errors in /usr/include/linux/if.h ???
ales88
alessandro-panzeri@alice.it
Fri Jul 15 09:55:00 GMT 2011
I've Ubuntu 10.10 and when I compile with gcc (version 4.4) I incur in the
following two errors:
In file included from main.c:34,
from aodv_hello.h:30,
from aodv_socket.c:38:
/usr/include/linux/if.h:134: error: redefinition of ‘struct ifmap’
/usr/include/linux/if.h:168: error: redefinition of ‘struct ifreq’
/usr/include/linux/if.h:217: error: redefinition of ‘struct ifconf’
In file included from /usr/include/iwlib.h:56,
from llf.c:36:
/usr/include/net/if.h:45: error: expected identifier before numeric constant
/usr/include/net/if.h:113: error: redefinition of ‘struct ifmap’
/usr/include/net/if.h:128: error: redefinition of ‘struct ifreq’
/usr/include/net/if.h:178: error: redefinition of ‘struct ifconf’
As you can observe, these two errors refer both to a SYSTEM FILE
/usr/include/net/if.h
Note that this error happens also when I try to compile other projects that
inclueds the file /usr/include/net/if.h
The problem is that I've never modified such file, therefore I don't know
how to fix these errors.
Has anybody some idea???
--
View this message in context: http://old.nabble.com/Why-errors-in--usr-include-linux-if.h------tp32067300p32067300.html
Sent from the gcc - Help mailing list archive at Nabble.com.
More information about the Gcc-help
mailing list