I have kmeans_seq.c and bikmeans_seq.c files. The file bikmeans_seq.c includes two headers: kmeans_seq.h and bikmeans_seq.h. When I compile bikmeans_seq.c using gcc bikmeans_seq.c -o bikmeans I get this error:
Undefined symbols for architecture x86_64:
  "_euclidean_dist", referenced from:
      _points_assignment in bikmeans_seq-5c462b.o
      _partition_clusters in bikmeans_seq-5c462b.o
      _standard_deviation in bikmeans_seq-5c462b.o
  "_find_max", referenced from:
      _standard_deviation in bikmeans_seq-5c462b.o
  "_kmeans", referenced from:
      _main in bikmeans_seq-5c462b.o
      _partition_clusters in bikmeans_seq-5c462b.o
     (maybe you meant: _bisecting_kmeans)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am not sure what this error is. Can someone hint me why I am getting this error? Thank you.
 
     
    