www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dcollections problem

reply BLS <windevguy hotmail.de> writes:
Hi
- probably Steve :)


I have problem in compiling a little programm using dcollection.LinkList.
(similar problem appears when I use dcollections.ArrayList)

D2.047

Linker error..
Error	1	Error 42: Symbol Undefined _D12dcollections8LinkList7__arrayZ		
Error	2	Error 42: Symbol Undefined 
_D12dcollections8LinkList12__ModuleInfoZ		

// LinkList use...
import dcollections.LinkList;

final class LoadBalancer {
	alias LinkList!Server ServerList;
	private ServerList sl;	
	static this() {
		synchronized lb = new LoadBalancer;
	}
	static LoadBalancer opCall() {
		return lb;
	}
	private this() {
		sl = new ServerList;
		sl.add( new Server() );

...
}
Thanks, Bjoern
Jun 29 2010
parent reply "Steven Schveighoffer" <schveiguy yahoo.com> writes:
On Tue, 29 Jun 2010 14:13:57 -0400, BLS <windevguy hotmail.de> wrote:

 Hi
 - probably Steve :)


 I have problem in compiling a little programm using dcollection.LinkList.
 (similar problem appears when I use dcollections.ArrayList)

 D2.047

 Linker error..
 Error	1	Error 42: Symbol Undefined _D12dcollections8LinkList7__arrayZ		
 Error	2	Error 42: Symbol Undefined  
 _D12dcollections8LinkList12__ModuleInfoZ		

 // LinkList use...
 import dcollections.LinkList;

 final class LoadBalancer {
 	alias LinkList!Server ServerList;
 	private ServerList sl;	
 	static this() {
 		synchronized lb = new LoadBalancer;
 	}
 	static LoadBalancer opCall() {
 		return lb;
 	}
 	private this() {
 		sl = new ServerList;
 		sl.add( new Server() );

 ...
 }
 Thanks, Bjoern

Are you linking against dcollections? It looks like you are not... BTW, you can use dcollections' ticket tracking system for things like this instead of sending to the newsgroup :) http://www.dsource.org/projects/dcollections/newticket -Steve
Jun 29 2010
parent BLS <windevguy hotmail.de> writes:
On 29/06/2010 20:19, Steven Schveighoffer wrote:
 Are you linking against dcollections?  It looks like you are not...

No.
 BTW, you can use dcollections' ticket tracking system for things like
 this instead of sending to the newsgroup :)

Will do. Thanks Steve bjoern
Jun 29 2010