C++相談室 part62
■ このスレッドは過去ログ倉庫に格納されています
0775774
2008/07/14(月) 05:22:22$ g++ -c hoge.cxx -o hoge.o
$ g++ -c main.cxx -o main.o
$ g++ main.o hoge.o -o main
Undefined symbols:
"int hoge::func<int>(int) const", referenced from:
_main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
となってしまいます。
templateのメンバ関数というのは、これではまずいですか?
■ このスレッドは過去ログ倉庫に格納されています