Operating System - HP-UX
1830504 Members
2403 Online
110006 Solutions
New Discussion

Linking templates on 10.20.

 
Brad Davis
New Member

Linking templates on 10.20.

We are using the brute force method of template compilation/linking, including the .cc file from the .h. This works on 7 other platforms (to include NT) but not here. I get a duplicate defn in the defmap file. Also I also cannot get -tr,c++ptlink to work at link time. I suspect that the compiler may not be completely installed. Is there a command I can run to insure the existance of c++ptlink? The ./ptrepository does get created and populated with a bunch of files so that much works. Also the compilation works. The problem is at linktime. If I remove the ./ptrepository and do an unclean build (just a link) then I get an executable that buserrors but that was preceded by an unresolved warning for the templated class and methods. So I either have a dup defn in defmap or unresolved. Any thoughts on this are greatly appreciated. Thanks,