This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Why errors in /usr/include/linux/if.h ???


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]