I try to use strcmp. In Win32 C project all work, byt when I try compile this code in Eclipse Mars Atmel Avr Toolchain, then fail compile.
compile error in use of strcmp:
dereferencing pointer to incomplete type
struct Command{
char* address;
char* cmd;
};
struct Command* parsedCommand = ParseCommand(PCmd); //PCmd - char*
if(parsedCommand != NULL)
{
if(strcmp(ADRES, *parsedCommand ->address) == 0)
I was not including the definition of the Command strucutre. When I include the definition of the structure, all is fine.