From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Greene To: Joe Buck Cc: egcs@cygnus.com Subject: Re: Template Instantiation Date: Mon, 09 Feb 1998 11:54:00 -0000 Message-id: References: <199802091728.JAA10214@atrus.synopsys.com> X-SW-Source: 1998-02/msg00368.html On Mon, 9 Feb 1998, Joe Buck wrote: > > CXXFLAGS = -DDEBUG=0 -DLINUX_LIBC6 -pipe -frtti -Wno-reorder \ > > -Wno-unused > > > > I get lots and lots of undefined symbols, all of them from > > templates. > > I didn't state something because I assumed you knew it: the compiler > must see the definitions of your template functions, not just their > declarations. Definitions must be visible at the point of use. With > or without -frepo, the compiler and linker won't go looking in other > files for template definitions. Ack! How did I forget that?! Duh... Thanks for your help! -Dave