www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - linker error

reply j <j jj.com> writes:
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
Jul 12 2010
next sibling parent Michael P. <baseball.mjp gmail.com> writes:
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.
Jul 12 2010
prev sibling parent BCS <none anon.com> writes:
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><
Jul 12 2010