www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Undefined __moduleUnitTests

reply Brian Eyster <beyster firstquality.com> writes:
I get the following message when trying to compile the winsamp.d
code:
OPTLINK (R) for Win32  Release 8.00.2
Copyright (C) Digital Mars 1989-2009  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
winsamp.obj(winsamp)
 Error 42: Symbol Undefined __moduleUnitTests
--- errorlevel 1

Am I missing something?
Dec 18 2009
parent reply torhu <no spam.invalid> writes:
On 18.12.2009 8:23, Brian Eyster wrote:
 I get the following message when trying to compile the winsamp.d
 code:
 OPTLINK (R) for Win32  Release 8.00.2
 Copyright (C) Digital Mars 1989-2009  All rights reserved.
 http://www.digitalmars.com/ctg/optlink.html
 winsamp.obj(winsamp)
   Error 42: Symbol Undefined __moduleUnitTests
 --- errorlevel 1

 Am I missing something?
The function was probably renamed. Which compiler version are you using?
Dec 19 2009
parent reply Brian Eyster <beyster firstquality.com> writes:
I am running the compiler located in C:\dmd2\windows\bin\.
In the readme.txt file it gives the following info for the
compiler: "dmd.exe  D compiler
http://www.digitalmars.com/d/2.0/dmd-windows.html"
In the sc.ini file in the same directory is gives: "[Version]
version=7.51 Build 020"
If neither of these is not the version that you are looking for,
you will have to direct me to where it can be found.
Dec 21 2009
next sibling parent reply torhu <no spam.invalid> writes:
On 21.12.2009 3:45, Brian Eyster wrote:
 I am running the compiler located in C:\dmd2\windows\bin\.
 In the readme.txt file it gives the following info for the
 compiler: "dmd.exe  D compiler
 http://www.digitalmars.com/d/2.0/dmd-windows.html"
 In the sc.ini file in the same directory is gives: "[Version]
 version=7.51 Build 020"
 If neither of these is not the version that you are looking for,
 you will have to direct me to where it can be found.
DMD prints the version at the top of the usage instructions. But here's what you need to do: Replace _moduleUnitTests with runModuleUnitTests. And add this declaration somewhere above WinMain: extern (C) bool runModuleUnitTests(); It seems the sample wasn't updated to work with druntime.
Dec 21 2009
parent Brian Eyster <beyster firstquality.com> writes:
Thank you.  Your suggestions worked. By the way, the compiler's
version is v2.037.
Dec 21 2009
prev sibling parent Don <nospam nospam.com> writes:
Brian Eyster wrote:
 I am running the compiler located in C:\dmd2\windows\bin\.
 In the readme.txt file it gives the following info for the
 compiler: "dmd.exe  D compiler
 http://www.digitalmars.com/d/2.0/dmd-windows.html"
 In the sc.ini file in the same directory is gives: "[Version]
 version=7.51 Build 020"
 If neither of these is not the version that you are looking for,
 you will have to direct me to where it can be found.
The readme is ancient, and sc.ini is about 3000 years old. You need to execute:
 dmd
and read the version info from there.
Dec 21 2009