Hi
For a new plugin I have to use a C++ compiler. The compiler complains about a couple of
things that are easily corrected, but for some problems I don't know why they are used there:
> ../..\proto.h(45) : error C2371: 'GNode' : redefinition; different basic types
> C:\tools\gtk-dev\src\glib\glib.h(694) : see declaration of 'GNode'
The line (and the one after it) in proto.h do this:
typedef struct GNode proto_tree;
typedef struct GNode proto_item;
According to the compiler they redefine GNode, is that's supposed to happen? I'm not that
good at C, so I might be wrong here.
../..\packet.h(200) : error C2371: 'value_string' : redefinition; different basic types
../..\proto.h(47) : see declaration of 'value_string'
Proto.h: struct value_string;
Packet.h declares the struct, is this a forward declaration? Can value_string be moved from
packet.h to proto.h?
--
Andreas Sikkema
andreas.sikkema@xxxxxxxxxxx
"Standing barefoot in a river of clues, most people would
not get their toes wet." - Brian Kantor in a.s.r.