架构x86_64的未定义符号:
“standardDeviation(double *)”,引用自:main.o中的_main ld:找不到架构x86_64 clang的符号:错误:链接器 命令失败,退出代码为1(使用-v查看调用)
#include <iostream>
using namespace std;
double standardDeviation(double []);
int main(){
double array[] = {2, 11, 4, 5, 9, 5, 4, 12, 7, 8, 9, 3, 7, 4, 12, 10,9, 6, 9, 4};
standardDeviation(array);
return 0;
}
double standardDeviation(double arrary){
cout << arrary;
return 0.0;
}
答案 0 :(得分:0)