0
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ビットです。ありがとう!ここでXcode 'アーキテクチャx86_64の未定義シンボル:' error?
はエラーを与えているファイルのコードです:あなたは、F(..)関数の実装を提供していない場合
#include <iostream>
using namespace std;
int p,q;
int f(int, int,const int [][8],const int [][8], int [],int []);
は、あなたが関数 'F()'を定義しました:あなたのmain.cppにファイルで
は、単にのような機能を実装しますか? – Matthias
編集を確認してください。 – Adzi
これは宣言ですが、定義はありません。あなたはそれを定義しましたか? – Matthias