stackoverflowの中に私の前の質問の続きとして: Getting LINK error : Extern in C++. How to access the value of a variable which is modified in File A.CPP in another file File B.CPP 私のC++のコードでI別のファイル "A"で実際に修正されたファイル "B
私はCに非常に新しいだと私はこのコードを持っている: #include <stdio.h>
#include <math.h>
int main(void)
{
double x = 0.5;
double result = sqrt(x);
printf("The square root of %lf is %lf\n", x, result);
r
このリンカエラーが発生しました。 o/foo/bar.cc.o: In function 'foo::bar()': bar.cc:(.text+0x728): undefined reference to 'rf<PlayerInfo> Util::getClosestToGlobal<PlayerInfo>(std::vector<rf<bats::PlayerInfo>, std::allo