あファイル
class A{
public:
static int* func (int &b);
}
A.cpp
int* A::func(int &b){
//some definition here
}
上記の関数を他のファイルで呼び出しています。その中に .h ファイルを含めました。コンパイルしようとすると、次のエラーが発生します
A::func(int &) への未定義参照
あファイル
class A{
public:
static int* func (int &b);
}
A.cpp
int* A::func(int &b){
//some definition here
}
上記の関数を他のファイルで呼び出しています。その中に .h ファイルを含めました。コンパイルしようとすると、次のエラーが発生します
A::func(int &) への未定義参照