linked_list.c includes linked_list.h where a struct called LINK_HEAD is defined.
main : main.c linked_list.o number.o
gcc -o main main.c linked_list.o number.o
linked_list.o : linked_list.c
gcc -c -o linked_list.o linked_list.c
number.o : number.c
gcc -c -o number.o number.c
number.c includes number.h
main.c includes linked_list.c and number.c
I have a function in number.h that has a return type of LINK_HEAD
I get this error
I'm assuming that it doesn't know what LIST_HEAD is - is there something wrong with my makefile that's causing this? Or am I including files in the wrong place?
number.h:4: error: expected =, ,, ;, asm or __attribute__ before * token
LIST_HEAD *add_two_numbers(LIST_HEAD *list, LIST_HEAD *listTwo);
Thanks in advance,