From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,cf2ab37e0603930a,start X-Google-Attributes: gidfee84,public From: jekholm@news.abo.fi (Jan Ekholm INF) Subject: Templates & cxx? Date: 1997/04/08 Message-ID: <5id8fb$pb2@josie.abo.fi>#1/1 X-Deja-AN: 231528109 Organization: Abo Akademi University Newsgroups: comp.unix.osf.osf1 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. When I compile the class using 'cxx' it creates a directory named 'cxx_repository', which contains a lot of different files. Seems like some kind of pre-instantiations? Are there any nifty switches that can be used? The manpage is quite unreadable (yes, I have read it) and doesn't help a lot. The environment is an AlphaStation 500, Digital Unix 4.0 and cxx. On a Linux it all works just fine. I'd really appreciate any kind of help! Best regards, Jan 'Chakie' Ekholm -- ------------------------+------------------------------------------------- Jan 'Chakie' Ekholm | CS at �bo Akademi University, Turku, Finland School : jekholm@abo.fi \ Freelance-Programmer at Enator-Ryhm� Work : je@enator.fi +------+ Powered by Linux since Fall '94 Home : chakie@mousehouse.abo.fi +---------------------------------------