currently everything is in the header file ! Interface.h, testArea.h.
The errors are
storetest.o(.text+0x29):st
storetest.o(.text+0x40):st
storetest.o(.text+0xf2):st
storetest.o(.testArea<Inte
nterface::Interface(void)'
storetest.o(.testArea<Inte
nterface::~Interface(void)
storetest.o(.testArea<Inte
nterface::serid(void)'
storetest.o(.testArea<Inte
nterface::~Interface(void)
collect2: ld returned 1 exit status
Main Topics
Browse All Topics





by: jkrPosted on 2003-08-25 at 13:06:28ID: 9218961
You have to keep the template member implementation in the header file - even though the C++ standard allows to separate them into two files, hardly any compiler supports that. Alternatively (as a workaround), put
#include "my_template_methods.cpp"
in the header file and the errors should go away.