#include
#include "stack.c" // correct is: #include "stack.h"
#include "stack.h" ... stack S = newStack(); ... if (S->height == 0) { // correct is: StackIsEmpty(S) ...