Error: " Undefined symbols for architecture x86_64:
"f(int, int, int const (*) [8], int const (*) [8], int*, int*)", referenced from:
_main in main.o "
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我尝试在 Visual Studio 2010 上运行完全相同的代码,并且成功了!知道为什么它在这里不起作用吗?我的 Mac 是 64 位的。谢谢!
这是给出错误的文件上的代码:
#include <iostream>
using namespace std;
int p,q;
int f( int, int,const int [][8],const int [][8], int [],int []);