Hi everyone, I'm currently working on a school assignment and came up with this error saying 'list_t has no member named head' but when I actually look at list.h and list.c (my code accessing list is in a separate file), head is in list.c. What did I do wrong?
list.c
typedef struct node node_t;
struct list {
node_t *head;
};
struct node {
void *data;
node_t *next;
};
list.h
typedef struct list list_t;
flange.c
vector_t start;
vector_t end;
list_t *params = datacons_params(shape);
list_t *tempList = tuple_val((value_t *)list_nth(params, 0));
start.x = tempList->head->data;
start.x = tempList->head->next->data;
and tuple_val returns (list_t *val)