D
dust
Hi,
Pls help me solve the compilation error:
In file included from /some/path/to/header1.h:1,
from /some/path/to/header2.h:15,
from //some/path/to/header3.h:46,
from //some/path/to/header4.h:1,
from //some/path/to/header5.h:4:
/actual/path/to/header6.h:107: redefinition of `struct vmac_addr'
Exception: error status 1 from /usr/bin/gcc
make: *** [OBJ/sim/object_file.o] Error 1
The compiler is complaining about multiple definition but not saying
where else it has been redeclared/redefined. Also the notable thing is
in the code the structure has been 'typedef' as:
typedef struct vmac_addr {
union {
u_int8_t mbyte[6];
u_int16_t mword[3];
} v;
} vMAC_ADDR;
But used as struct vmac_addr itself and not with typedef'ed
identifier. How to identify where the structure is redefined/
redeclared?
Thanks
Dust
Pls help me solve the compilation error:
In file included from /some/path/to/header1.h:1,
from /some/path/to/header2.h:15,
from //some/path/to/header3.h:46,
from //some/path/to/header4.h:1,
from //some/path/to/header5.h:4:
/actual/path/to/header6.h:107: redefinition of `struct vmac_addr'
Exception: error status 1 from /usr/bin/gcc
make: *** [OBJ/sim/object_file.o] Error 1
The compiler is complaining about multiple definition but not saying
where else it has been redeclared/redefined. Also the notable thing is
in the code the structure has been 'typedef' as:
typedef struct vmac_addr {
union {
u_int8_t mbyte[6];
u_int16_t mword[3];
} v;
} vMAC_ADDR;
But used as struct vmac_addr itself and not with typedef'ed
identifier. How to identify where the structure is redefined/
redeclared?
Thanks
Dust