黒鳥3D研究所

3DCGでケモノを作る上で使えそうな技術をまとめていくブログ。主にソフトやプラグインの使い方をまとめます。その他雑記なども

C++

【XCode 9.2】C++でテンプレートクラス書いたら Undefined symbols for architecture arm64: した

XCodeでテンプレートクラスを作ったらハマったのでメモ /*test.h*/ template <class T> class Test { public: T max(T a, T b); }; /*test.cpp*/ template <classT> T Test<T>::max(T a, T b) { if(a < b) return b; return a; } このように実装ファイル側で実装部を書くと Undef</t></classt></class>…