From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cf2ab37e0603930a X-Google-Attributes: gidfee84,public From: Marc Roussel Subject: Re: Templates & cxx? Date: 1997/04/08 Message-ID: <334A8D97.41C6@henri.chem.uleth.ca>#1/1 X-Deja-AN: 231645299 References: <5id8fb$pb2@josie.abo.fi> To: Jan Ekholm INF Organization: Department of Chemistry, University of Lethbridge Newsgroups: comp.unix.osf.osf1 Jan Ekholm INF wrote: > Has anybody got any information as to how templates are used under > Digital Unix 4.0 and cxx? Under Linux and gcc my program compiles and > runs just fine, but cxx gives me : > > ld: > Unresolved: > List::List(void) > List::~List(void) > List::Insert(Camera*) > ... > > The 'List; class uses templates. It compiles quite nicely generating > an .o file, but when I link the main application with the file I get > the output above. Try the -define_templates compiler switch. Marc R. Roussel (roussel@henri.chem.uleth.ca) Department of Chemistry University of Lethbridge