Dparser link error

Knud Soerensen 4tuu4k002 at sneakemail.com
Tue Mar 20 15:07:51 PDT 2007


Hi 

I am trying to link the mars.d program which come with Dparser
and i get the following errors.

../dparser/dparser.dmd.Aggregate.o: In function `_D7dparser3dmd9Aggregate11accessCheckFS7dparser3dmd4Root3LocC7dparser3dmd5Scope5ScopeC7dparser3dmd10Expression10ExpressionC7dparser3dmd11Declaration11DeclarationZv':
../dparser/dmd/Aggregate.d:(.gnu.linkonce.t_D7dparser3dmd9Aggregate11accessCheckFS7dparser3dmd4Root3LocC7dparser3dmd5Scope5ScopeC7dparser3dmd10Expression10ExpressionC7dparser3dmd11Declaration11DeclarationZv+0xad): undefined reference to `_D22TypeInfo_B10AaAaAaAaAa6__initZ'
../dparser/dparser.dmd.ScopeSymbol.o: In function `_D7dparser3dmd11ScopeSymbol12ScopeDSymbol15multiplyDefinedFS7dparser3dmd4Root3LocC7dparser3dmd6Symbol7DSymbolC7dparser3dmd6Symbol7DSymbolZv':
../dparser/dmd/ScopeSymbol.d:(.gnu.linkonce.t_D7dparser3dmd11ScopeSymbol12ScopeDSymbol15multiplyDefinedFS7dparser3dmd4Root3LocC7dparser3dmd6Symbol7DSymbolC7dparser3dmd6Symbol7DSymbolZv+0x85): undefined reference to `_D22TypeInfo_B10AaAaAaAaAa6__initZ'
collect2: ld returned 1 exit status
--- errorlevel 1

Does anybody know what the problem is ??

The last error seems to referrer to the following function can anyone spot
the error ??

	static void multiplyDefined(Loc loc, DSymbol s1, DSymbol s2)
	{
	    //printf("s1 = '%s'\n", s1.toChars());
	    //printf("s2 = '%s', parent = %p\n", s2.toChars(), s2.parent);
	//	#if 1
	    s1.error( "conflicts with %s at %s", s2.toPrettyChars(), s2.locToChars() );
        if (loc.filename)        
        {	
            .errorLoc(loc, "%s at %s conflicts with %s at %s", s1.toPrettyChars(), s1.locToChars(), s2.toPrettyChars(), s2.locToChars());
        }
        else
        {
	        s1.errorLoc(loc, "conflicts with %s at %s", s2.toPrettyChars(), s2.locToChars());
        }
	}


More information about the Digitalmars-d-learn mailing list