Thread View: gnu.g++.help
1 messages
1 total messages
Started by Mark Stubley
Wed, 12 Aug 1992 14:07
Disappearing Template object code
Author: Mark Stubley
Date: Wed, 12 Aug 1992 14:07
Date: Wed, 12 Aug 1992 14:07
27 lines
1406 bytes
1406 bytes
I am currently using g++2.2.2 to write a library that makes use of a template for a hash table. This class alon g with a class that uses it are in a link time library. When a program is compiled that uses the library then all references to the specific instance of the template class are undefined. Running nm on the template object files reveals they don't contain any class specific symbols. If I write a simple test program with the template definitions in the same file as instances are declared then it works fine. As soon as I move the definitions to a different file I get link failures on the template constructors. Have I missed something obvious ? Thanks in advance Mark -- =========================================================================== Mark A. Stubley (mas@fulcrum.bt.co.uk) =========================================================================== Fulcrum communications L.T.D., Fordrough Lane, Birmingham, B9 5LD, ENGLAND.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads