/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
/home/4bZ4aY/ccWW6un1.o: In function `m()':
prog.cpp:(.text+0xf): undefined reference to `A<int>::friends_only()'
collect2: ld returned 1 exit status