This is the mail archive of the gcc-bugs@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]

Incompatibility between net/if.h and STL map class


Hello:

 I am using GNU gcc and g++ on a Solaris 2.7 system and recently discovered
an incompatibility between the STL class map<> and a struct map that occurs
in <net/if.h>. The compiler complained about this and that is how it was
discovered. There is a structure declared in <net/if.h> called struct ifnet
that has as a last element  "struct map *if_memmap"  This would not compile
when using this include along with the STL map. I worked around it by
created my own local version of the include and commenting out the ifnet
structure since I do not use it but that is not the real solution.

Please reply...

Thanks,

Steve Herrick
Textron Systems Division
Sherrick@systems.textron.com



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