Re: [OFF-TOPIC] C++ template question

1997-10-31 Thread Daniel Martin
On Fri, 31 Oct 1997, Shaleh wrote: > How is the STL shipped then. We do not have access to its code do we?? > First off, since it's an official part of Debian, yes, we must have access to the code somehow. But aside from that, yes, _any_ template library that someone provides for developers to

Re: [OFF-TOPIC] C++ template question

1997-10-31 Thread Jason Gunthorpe
On Fri, 31 Oct 1997, Shaleh wrote: > This is mostly off topic but > > How do you compile a template class into an object file WITHOUT > instantiating it??? g++ happily compiles the .o file but bombs out when > it tries to link later. Any suggestions happily accepted. Either to > the list

Re: [OFF-TOPIC] C++ template question

1997-10-31 Thread Shaleh
How is the STL shipped then. We do not have access to its code do we?? -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .

Re: [OFF-TOPIC] C++ template question

1997-10-31 Thread Qiang Rao
For template classes, the class has to be in the header file only, it can't have separate files for header and class file. When you want to use the template class, only include the header file, and compile only the test file, not the template class file. Ex. template class file : bar.h test file:

[OFF-TOPIC] C++ template question

1997-10-31 Thread Shaleh
This is mostly off topic but How do you compile a template class into an object file WITHOUT instantiating it??? g++ happily compiles the .o file but bombs out when it tries to link later. Any suggestions happily accepted. Either to the list or me personally. -- TO UNSUBSCRIBE FROM THIS M