kmeans_seq.c
및 bikmeans_seq.c
개의 파일이 있습니다. 파일 bikmeans_seq.c
에는 kmeans_seq.h
과 bikmeans_seq.h
이라는 두 개의 헤더가 있습니다.여러 헤더 파일이있는 C 프로그램을 컴파일 할 때 오류가 발생했습니다.
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)
나는이 오류가 무엇인지 확실하지 않다 : 나는 gcc bikmeans_seq.c -o bikmeans
를 사용하여 bikmeans_seq.c
를 컴파일 할 때 나는이 오류가 발생합니다. 누군가가 왜이 오류가 발생하는지 나에게 암시 할 수 있습니까? 고맙습니다. 소스없이
어려운 소스가 없습니다. [mcve] –
두 개의 C 파일은 어떻게 관련되어 있습니까? –