Hi, why this simple codes fail to compile (error during linking)? /************************ Kelas.h **********************/ template<typename T> class Kelas { public: Kelas(); int getInt() const; }; /************************ Kelas.cpp **********************/ #include "Kelas.h" template<typename T> Kelas<T>::Kelas() { } template<typename T> int Kelas<T>::getInt() const { return 100; } /*********************** coba.cpp ***************************/ #include <iostream> #include "Kelas.h" using namespace::std; int main() { Kelas<int> k; cout << k.getInt() << endl; } /*********************** end of coba.cpp ***************************/ Compilation: 1. "g++ -c Kelas.cpp" success. 2. "g++ -c coba.cpp" success. 3. "g++ -o haha coba.o Kelas.o -L." failed: coba.o(.text+0x18): In function `main': : undefined reference to `Kelas<int>::Kelas[in-charge]()' coba.o(.text+0x32): In function `main': : undefined reference to `Kelas<int>::getInt() const' collect2: ld returned 1 exit status TIA. -- -- Verdi March --