I don't fully understand how templates work, from the compile and link perspective. Should the various source files for the templates be compiled into object files and linked with the xerces shared library?
For example: I see that RefHashTableOf.c defined a template for RefHashTableOf. This template is used in ValueStoreCache.cpp So the question is, how does the linked know about the methods in RefHashTableOf.c I see that the linker is linking in ValueStoreCache.o but there is no RefHashTableOf.o on the linker line. Should there be? -----Original Message----- From: Graham Bennett [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 12:34 PM To: [EMAIL PROTECTED] Subject: Re: Xerces Build on Solaris On Tue, Oct 28, 2003 at 11:30:11AM -0800, Witten, Kevin wrote: > I turned on -verbose=template. Now I can see the various templates being > instantiated. This is confusing; I can see that the unreferenced symbols > during compilation of the samples are being instantiated during compilation > of the library. If the instantiation is happening correctly, you need to debug what is happening at link time to see why the generated object files aren't getting linked into the final library. I guess you could try turning on more debug options or even trussing the compiler. Graham. -- Graham Bennett --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
