Try moving #include"tree_stack.c" after the struct node definition in stack_check.c.
The error occurs because the compiler doesn't know what struct node is, and that's because it hasn't been defined yet.