Code: Select all
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
typedef struct DisplaySegment
{
unsigned char segmentId;
bool bInFlash;
unsigned int iValue;
// linked list
DisplaySegment *nextLinkedSegment;
} ;
I am attempting to setup a linked list.
however, the compiler is throwing an error for
DisplaySegment *nextLinkedSegment;
Unknown type name 'DisplaySegment'
I have built this code using a Microsoft compiler with no issues.
Is there some other include file needed or what?
Thanks in advance