From: Marc Roussel <roussel@henri.chem.uleth.ca>
To: Jan Ekholm INF <jekholm@news.abo.fi>
Subject: Re: Templates & cxx?
Date: 1997/04/08 [thread overview]
Message-ID: <334A8D97.41C6@henri.chem.uleth.ca> (raw)
In-Reply-To: 5id8fb$pb2@josie.abo.fi
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<Camera*>::List<Camera*>(void)
> List<Camera*>::~List<Camera*>(void)
> List<Camera*>::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
prev parent reply other threads:[~1997-04-08 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-08 4:00 Templates & cxx? Jan Ekholm INF
1997-04-08 4:00 ` Marc Roussel [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox