I typed make speller and clang produces the output below. I'm really not sure how to resolve this. I thought that it might be saying that I defined the hash function twice but I don't think I have. Any help would be much appreciated!!
clang -ggdb3 -O0 -Qunused-arguments -std=c11 -Wall -Werror -c -o speller.o speller.c
clang -ggdb3 -O0 -Qunused-arguments -std=c11 -Wall -Werror -c -o dictionary.o dictionary.c
clang -ggdb3 -O0 -Qunused-arguments -std=c11 -Wall -Werror -o speller speller.o dictionary.o
dictionary.o: In function `hash_function':
/home/ubuntu/workspace/pset5/speller/./dictionary.h:34: multiple definition of `hash_function'
speller.o:/home/ubuntu/workspace/pset5/speller/./dictionary.h:34: first defined here
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [speller] Error 1
this is the hash function
int hash_function(char* key)
{
int hash = toupper(key[0]) - 'A';
return hash % SIZE;
}