- 775 名前:774 mailto:sage [2008/07/14(月) 05:22:22 ]
- GCC 4.0.1で、
$ 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のメンバ関数というのは、これではまずいですか?
|

|