Undefined symbols for architecture x86_64:
"printMatrix(std::__1::vector<std::__1::vector<double, std::__1::allocator<double> >, std::__1::allocator<std::__1::vector<double, std::__1::allocator<double> > > >)", referenced from:
_main in main-68c344.o
"printVector(std::__1::vector<double, std::__1::allocator<double> >)", referenced from:
_main in main-68c344.o
"GaussianElimination(std::__1::vector<std::__1::vector<double, std::__1::allocator<double> >, std::__1::allocator<std::__1::vector<double, std::__1::allocator<double> > > >, std::__1::vector<double, std::__1::allocator<double> >)", referenced from:
_main in main-68c344.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
このようなエラーコードが出ました。この場合ヘッダーがいるを読み込めていないと言うことでしょうか。それともヘッダーファイルに異常があると言うことでしょうか。
OSはMACです
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/06/30 08:16