digitalmars.D.learn - Mango, DSSS, linker, ThreadSafeList!
- Dawid =?UTF-8?B?Q2nEmcW8YXJraWV3aWN6?= (153/153) Dec 23 2006 DSSS, dmd, linux
DSSS, dmd, linux I'm using many of mango functions and everything is OK, but after adding member: private ThreadSafeList!(EchoTelnet) serviceThreads; (EchoTelnet is some dummy class name) I've got this: dpc empire:~/tmp/d$ make dsss build server.d server.d => server + /home/dpc/stg/d/bin/dsss_build -I/home/dpc/stg/d/include/d -LIBPATH=/home/dpc/stg/d/lib -LIBPATH=. -od. server.d -Tserver server.o: In function `_D5mango10containers9Container25__T17AbstractContainerTiZ17AbstractContainer6equalsFiiZi': server.d (.gnu.linkonce.t_D5mango10containers9Container25__T17AbstractContainerTiZ17AbstractContainer6equalsFiiZi+0xf): undefined reference to `_D5mango10containers4Util11__T4UtilTiZ6equalsFiiZi' server.o: In function `_D5mango10containers9Container25__T17AbstractContainerTiZ17AbstractContainer3cmpFiiZi': server.d (.gnu.linkonce.t_D5mango10containers9Container25__T17AbstractContainerTiZ17AbstractContainer3cmpFiiZi+0xf): undefined reference to `_D5mango10containers4Util11__T4UtilTiZ3cmpFiiZi' server.o: In function `_D5mango10containers9Container25__T17AbstractContainerTiZ17AbstractContainer4hashFiZk': server.d (.gnu.linkonce.t_D5mango10containers9Container25__T17AbstractContainerTiZ17AbstractContainer4hashFiZk+0xc): undefined reference to `_D5mango10containers4Util11__T4UtilTiZ4hashFiZk' server.o: In function `_D5mango10containers3Map21__T11AbstractMapTiThZ11AbstractMap8opEqualsFC6ObjectZi': server.d (.gnu.linkonce.t_D5mango10containers3Map21__T11AbstractMapTiThZ11AbstractMap8opEqualsFC6ObjectZi+0x7a): undefined reference to `_D5mango10containers4Util11__T4UtilThZ6equalsFhhZi' server.o: In function `_D5mango10containers3Map21__T11AbstractMapTiThZ11AbstractMap6equalsFiiZi': server.d (.gnu.linkonce.t_D5mango10containers3Map21__T11AbstractMapTiThZ11AbstractMap6equalsFiiZi+0xf): undefined reference to `_D5mango10containers4Util11__T4UtilTiZ6equalsFiiZi' server.o: In function `_D5mango10containers3Map21__T11AbstractMapTiThZ11AbstractMap3cmpFiiZi': server.d (.gnu.linkonce.t_D5mango10containers3Map21__T11AbstractMapTiThZ11AbstractMap3cmpFiiZi+0xf): undefined reference to `_D5mango10containers4Util11__T4UtilTiZ3cmpFiiZi' server.o: In function `_D5mango10containers3Map21__T11AbstractMapTiThZ11AbstractMap4hashFiZk': server.d (.gnu.linkonce.t_D5mango10containers3Map21__T11AbstractMapTiThZ11AbstractMap4hashFiZk+0xc): undefined reference to `_D5mango10containers4Util11__T4UtilTiZ4hashFiZk' server.o: In function `_D5mango10containers9Container25__T17AbstractContainerThZ17AbstractContainer6equalsFhhZi': server.d (.gnu.linkonce.t_D5mango10containers9Container25__T17AbstractContainerThZ17AbstractContainer6equalsFhhZi+0xf): undefined reference to `_D5mango10containers4Util11__T4UtilThZ6equalsFhhZi' server.o: In function `_D5mango10containers9Container25__T17AbstractContainerThZ17AbstractContainer3cmpFhhZi': server.d (.gnu.linkonce.t_D5mango10containers9Container25__T17AbstractContainerThZ17AbstractContainer3cmpFhhZi+0xf): undefined reference to `_D5mango10containers4Util11__T4UtilThZ3cmpFhhZi' server.o: In function `_D5mango10containers9Container25__T17AbstractContainerThZ17AbstractContainer4hashFhZk': server.d (.gnu.linkonce.t_D5mango10containers9Container25__T17AbstractContainerThZ17AbstractContainer4hashFhZk+0xc): undefined reference to `_D5mango10containers4Util11__T4UtilThZ4hashFhZk' server.o: In function `_D5mango10containers7HashMap16__T7HashMapTiThZ7HashMap8valueSetFZC5mango10containers3Set10__T3SetThZ3Set': server.d (.gnu.linkonce.t_D5mango10containers7HashMap16__T7HashMapTiThZ7HashMap8valueSetFZC5mango10containers3Set10__T3SetThZ3Set+0x10): undefined reference to `D5mango10containers7HashSet14__T7HashSetThZ7HashSet7__ClassZ' server.d (.gnu.linkonce.t_D5mango10containers7HashMap16__T7HashMapTiThZ7HashMap8valueSetFZC5mango10containers3Set10__T3SetThZ3Set+0x2a): undefined reference to `_D5mango10containers7HashSet14__T7HashSetThZ7HashSet5_ctorFiZC5mango10containers7HashSet14__T7HashSetThZ7HashSet' server.o (.gnu.linkonce.d.D5mango10containers7HashMap16__T7HashMapThThZ7HashMap15HashMapIterator7__ClassZ+0x3c): undefined reference to `D5mango10containers8Iterator28__T18MutableMapIteratorThThZ18MutableMapIterator11__InterfaceZ' server.o (.gnu.linkonce.d.D5mango10containers7HashMap16__T7HashMapThThZ7HashMap18HashMapKeyIterator7__ClassZ+0x3c): undefined reference to `D5mango10containers8Iterator23__T15MutableIteratorThZ15MutableIterator11__InterfaceZ' server.o: In function `_D5mango10containers7HashMap16__T7HashMapThThZ7HashMap6keySetFZC5mango10containers3Set10__T3SetThZ3Set': server.d (.gnu.linkonce.t_D5mango10containers7HashMap16__T7HashMapThThZ7HashMap6keySetFZC5mango10containers3Set10__T3SetThZ3Set+0xf): undefined reference to `D5mango10containers7HashSet14__T7HashSetThZ7HashSet7__ClassZ' server.d (.gnu.linkonce.t_D5mango10containers7HashMap16__T7HashMapThThZ7HashMap6keySetFZC5mango10containers3Set10__T3SetThZ3Set+0x1d): undefined reference to `_D5mango10containers7HashSet14__T7HashSetThZ7HashSet5_ctorFC5mango10containers3Map20__T10MutableMapThThZ10MutableMapZC5mango10containers7HashSet14__T7HashSetThZ7HashSet' server.o: In function `_D5mango10containers7HashMap16__T7HashMapThThZ7HashMap8valueSetFZC5mango10containers3Set10__T3SetThZ3Set': server.d (.gnu.linkonce.t_D5mango10containers7HashMap16__T7HashMapThThZ7HashMap8valueSetFZC5mango10containers3Set10__T3SetThZ3Set+0x10): undefined reference to `D5mango10containers7HashSet14__T7HashSetThZ7HashSet7__ClassZ' server.d (.gnu.linkonce.t_D5mango10containers7HashMap16__T7HashMapThThZ7HashMap8valueSetFZC5mango10containers3Set10__T3SetThZ3Set+0x2a): undefined reference to `_D5mango10containers7HashSet14__T7HashSetThZ7HashSet5_ctorFiZC5mango10containers7HashSet14__T7HashSetThZ7HashSet' server.o (.gnu.linkonce.d.D5mango10containers7HashMap16__T7HashMapThThZ7HashMap6__vtblZ+0x14): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap8opEqualsFC6ObjectZi' server.o (.gnu.linkonce.d.D5mango10containers7HashMap16__T7HashMapThThZ7HashMap6__vtblZ+0x40): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap13containsValueFhZb' server.o (.gnu.linkonce.d.D5mango10containers7HashMap16__T7HashMapThThZ7HashMap6__vtblZ+0x44): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap7opApplyFDFKhKhZiZi' server.o (.gnu.linkonce.d.D5mango10containers7HashMap16__T7HashMapThThZ7HashMap6__vtblZ+0x48): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap6equalsFhhZi' server.o (.gnu.linkonce.d.D5mango10containers7HashMap16__T7HashMapThThZ7HashMap6__vtblZ+0x4c): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap3cmpFhhZi' server.o (.gnu.linkonce.d.D5mango10containers7HashMap16__T7HashMapThThZ7HashMap6__vtblZ+0x50): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap4hashFhZk' server.o (.gnu.linkonce.d.D5mango10containers3Map28__T18AbstractMutableMapThThZ18AbstractMutableMap7__ClassZ+0x28): undefined reference to `D5mango10containers3Map20__T10MutableMapThThZ10MutableMap7__ClassZ' server.o (.gnu.linkonce.d.D5mango10containers3Map28__T18AbstractMutableMapThThZ18AbstractMutableMap6__vtblZ+0x14): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap8opEqualsFC6ObjectZi' server.o (.gnu.linkonce.d.D5mango10containers3Map28__T18AbstractMutableMapThThZ18AbstractMutableMap6__vtblZ+0x40): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap13containsValueFhZb' server.o (.gnu.linkonce.d.D5mango10containers3Map28__T18AbstractMutableMapThThZ18AbstractMutableMap6__vtblZ+0x44): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap7opApplyFDFKhKhZiZi' server.o (.gnu.linkonce.d.D5mango10containers3Map28__T18AbstractMutableMapThThZ18AbstractMutableMap6__vtblZ+0x48): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap6equalsFhhZi' server.o (.gnu.linkonce.d.D5mango10containers3Map28__T18AbstractMutableMapThThZ18AbstractMutableMap6__vtblZ+0x4c): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap3cmpFhhZi' server.o (.gnu.linkonce.d.D5mango10containers3Map28__T18AbstractMutableMapThThZ18AbstractMutableMap6__vtblZ+0x50): undefined reference to `_D5mango10containers3Map21__T11AbstractMapThThZ11AbstractMap4hashFhZk' collect2: ld returned 1 exit status The question is - what can be cause of this?
Dec 23 2006