error in library file

Sorry do you mean that DrsPacket should be defined in this library?
It is a typedef struct that i defined in herkulex.c file.

Why is it defined in the source file when it is referenced in the header file? If it is defined in the header file, it can be referenced in the source, but the opposite is not true.