DWT doesn't compile with dmd 2.87.0

Jacob Carlborg doob at me.com
Thu Jul 18 07:50:52 UTC 2019


On 2019-07-14 19:00, Patrick Schluter wrote:
> DWT doesn't build anymore with the new compiler. Wasn't DWT supposed to 
> be part of the build job of compiler so that regressions are caught in 
> time?
> 
> 
> dwt 1.0.1+swt-3.4.1: building configuration "windows-win32"...
> C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\gdip\Gdip.d(478,9): 
> Deprecation: The delete keyword has been deprecated.  Use 
> object.destroy() (and core.memory.GC.free() if applicable) instead.
> C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\ole\win32\OleControlSite.d(886,43): 
> Error: class `org.eclipse.swt.ole.win32.OleControlSite.OleControlSite` 
> member AddRef is not accessible
> C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\ole\win32\OleControlSite.d(906,43): 
> Error: class `org.eclipse.swt.ole.win32.OleControlSite.OleControlSite` 
> member AddRef is not accessible
> C:\Users\Patri\AppData\Local\dub\packages\dwt-1.0.1_swt-3.4.1\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\widgets\IME.d(506,29): 
> Deprecation: The delete keyword has been deprecated.  Use 
> object.destroy() (and core.memory.GC.free() if applicable) instead.
> C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.

As a workaround you can disable deprecation messages by adding 
"silenceDeprecations" to the "buildRequirements" setting in your Dub file.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-dwt mailing list