prog.cpp:7:39: warning: friend declaration 'void operator*(A<T>, A<T>)' declares a non-template function
prog.cpp:7:39: note: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here)
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
/home/MB7hp5/ccUIDMX3.o: In function `m()':
prog.cpp:(.text+0xb): undefined reference to `operator*(A<int>, A<int>)'
collect2: ld returned 1 exit status