Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
December 18, 2009 Undefined __moduleUnitTests | ||||
---|---|---|---|---|
| ||||
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? |
December 19, 2009 Re: Undefined __moduleUnitTests | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian Eyster | 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?
|
December 21, 2009 Re: Undefined __moduleUnitTests | ||||
---|---|---|---|---|
| ||||
Posted in reply to torhu | 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. |
December 21, 2009 Re: Undefined __moduleUnitTests | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian Eyster | 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.
|
December 21, 2009 Re: Undefined __moduleUnitTests | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian Eyster | 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.
|
Copyright © 1999-2021 by the D Language Foundation