In function `main':

: undefined reference to `binarySearch'

I can't seem to figure out why the following is giving me an undefined reference:

Code:int binarySearch(int numbers[], int value, int size); int main() { int numbers[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, }; printf("Searching for -1 in numbers using binary search\n"); binarySearch(numbers, -1, 15); return 0 } int binarysearch(int numbers[], int value, int size) { .... binary search code }