Thread View: gnu.g++.help
1 messages
1 total messages
Started by Jose Exposto
Tue, 12 Mar 1996 00:23
Problem with generic classes in libg++
Author: Jose Exposto
Date: Tue, 12 Mar 1996 00:23
Date: Tue, 12 Mar 1996 00:23
48 lines
1930 bytes
1930 bytes
Hello,
When I try to define 2 generic Splay Sets of diferent types from libg++
I get a weird link error:
Doc.Splay.Set (.data+0x0): multiple definition of '_dummy_null'
String.Splay.Set (.data+0x0): first defined here
Classes Doc and String are the two types for which I want to make a Set.
String is the class String from libg++ and Doc is a class I'm define:
class Doc: public StringSplaySet{
....
}
I build the generic code using:
genclass String val defs
genclass String val Set
genclass String val SplaySet
genclass String val SplayNode (this one I wasn't expecting, but
I had to build it as well).
Now I have class StringSplaySet working good.
When I declare a class Cluster:
class Cluster: public DocSplaySet{
....
}
where DocSplaySet if build using:
genclass Doc val defs
genclass Doc val Set
genclass Doc val SplaySet
genclass Doc val SplayNode.
When I put it all together the link error above shows up. I apreciate
any feedback on the problem.
Thanks
--
+---------------------------------------------------------------------+
| Jose Luis Padrao Exposto |
| Department of Informatics, University of Minho |
| <mailto:mesexp@di.uminho.pt> <URL:http://alfa.di.uminho.pt/~mesexp> |
| voice : +351-53-616969 fax : +351-53-616969 |
+---------------------------------------------------------------------+
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