Thread overview
linker error
Jul 12, 2010
j
Jul 12, 2010
Michael P.
Jul 12, 2010
BCS
July 12, 2010
hi,

can anybody tell me please why the linker keeps bringing up this error message? i am using the latest dmd 2.

thank you

OPTLINK (R) for Win32  Release 8.00.2
Copyright (C) Digital Mars 1989-2009  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
obj\Debug\SServer.obj(SServer)
 Error 42: Symbol Undefined __moduleUnitTests
--- errorlevel 1
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings

July 12, 2010
j Wrote:

> hi,
> 
> can anybody tell me please why the linker keeps bringing up this error message? i am using the latest dmd 2.
> 
> thank you
> 
> OPTLINK (R) for Win32  Release 8.00.2
> Copyright (C) Digital Mars 1989-2009  All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> obj\Debug\SServer.obj(SServer)
>  Error 42: Symbol Undefined __moduleUnitTests
> --- errorlevel 1
> Process terminated with status 1 (0 minutes, 0 seconds)
> 1 errors, 0 warnings
> 

I think we'll need to see the code to figure out why that linker error is coming up.
July 12, 2010
Hello j,

> hi,
> 
> can anybody tell me please why the linker keeps bringing up this error
> message? i am using the latest dmd 2.
> 
> thank you
> 
> OPTLINK (R) for Win32  Release 8.00.2
> Copyright (C) Digital Mars 1989-2009  All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> obj\Debug\SServer.obj(SServer)
> Error 42: Symbol Undefined __moduleUnitTests
> --- errorlevel 1
> Process terminated with status 1 (0 minutes, 0 seconds) 1 errors, 0
> warnings
> 

Without seeing code, my first guess is something is mismatched. Run a clean build. My next guess, is you are missing a .obj file in the link. Do you have a UnitTest.d?

-- 
... <IXOYE><