prog.c: In function 'undef':
prog.c:6:19: warning: implicit declaration of function 'hash' [-Wimplicit-function-declaration]
hashval = hash(name);
^
prog.c:7:16: error: 'hashtab' undeclared (first use in this function)
curr = hashtab[hashval];
^
prog.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
prog.c:9:24: error: 'NULL' undeclared (first use in this function)
while (curr != NULL && strcmp(name, curr->name)!= 0)
^
prog.c:9:32: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
while (curr != NULL && strcmp(name, curr->name)!= 0)
^
prog.c:9:49: error: dereferencing pointer to incomplete type 'struct nlist'
while (curr != NULL && strcmp(name, curr->name)!= 0)
^
prog.c:11:17: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("while loop\n");
^
prog.c:11:17: warning: incompatible implicit declaration of built-in function 'printf'
prog.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
prog.c:16:9: warning: incompatible implicit declaration of built-in function 'printf'
printf("after loop\n");
^
prog.c:16:9: note: include '<stdio.h>' or provide a declaration of 'printf'
prog.c:20:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
free ((void *) curr->name);
^
prog.c:20:17: warning: incompatible implicit declaration of built-in function 'free'
prog.c:20:17: note: include '<stdlib.h>' or provide a declaration of 'free'
prog.c:4:18: warning: variable 'hashval' set but not used [-Wunused-but-set-variable]
unsigned hashval;
^