Undefined __moduleUnitTests

torhu no at spam.invalid
Mon Dec 21 08:24:18 PST 2009

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.

More information about the Digitalmars-d-learn mailing list