I am trying to make a struct in C that is a linked list. I am not really sure what is going wrong though. My errors are:
linked.c:6:2: error: unknown type name
in makeList change
second.rest = &c;
first.rest = &b;
to
ll.rest = &second;
second.rest = &third;
in the original you were giving the adresses of the int variables instead of the linkedList nodes. also, you had a variable 'first' which was never declared, that's where one of errors were taking place.
also try declaring all your variables first, it makes it easier to read.