www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Problem building SWTSnippets with D 2.074.x

reply Mike James <foo bar.com> writes:
Hi,

I get the following errors when trying to build the swtsnippets 
with the latest SWT...

PS C:\d\gui\dwt> rdmd build swtsnippets
(in C:\d\gui\dwt)
Building swtsnippets[Snippet10]
dmd.exe  C:\d\gui\dwt\rsp
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(84): 
Error: basic type expected, not class
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(84): 
Error: { members } expected for anonymous class
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(84): 
Error: found 'class' when expecting ';' following state
ment
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(85): 
Error: found '{' when expecting ';' following statement
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(86): 
Error: found 'public' instead of statement
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(89): 
Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(89): 
Error: no identifier for declarator frame.addListener(S
WT.Resize, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(90): 
Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(90): 
Error: no identifier for declarator frame.addListener(S
WT.Move, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(91): 
Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(91): 
Error: no identifier for declarator addListener(SWT.Dis
pose, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(92): 
Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(92): 
Error: no identifier for declarator addListener(SWT.Foc
usIn, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(93): 
Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(93): 
Error: no identifier for declarator addListener(SWT.Foc
usOut, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(94): 
Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(94): 
Error: no identifier for declarator addListener(SWT.Pai
nt, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(95): 
Error: function declaration without return type. (Note
that constructors are always named 'this')
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(95): 
Error: no identifier for declarator addListener(SWT.Tra
verse, listener)
C:\d\gui\dwt\imp\org\eclipse\swt\ole\win32\OleClientSite.di(96): 
Error: function declaration without return type. (Note
that constructors are always named 'this')

object.Exception build.d(375): compile error
----------------
0x00406C4F
0x004084CF
0x004049CC
0x004207E3
0x004207A7
0x004206A8
0x0041828B
0x74378744 in BaseThreadInitThunk
0x7773587D in RtlGetAppContainerNamedObjectPath
0x7773584D in RtlGetAppContainerNamedObjectPath
PS C:\d\gui\dwt> SampleNoiseMeasureSampleNoiseMeasure


Regards, Mike.
Jun 02
parent Jacob Carlborg <doob me.com> writes:
On 2017-06-02 09:25, Mike James wrote:
 Hi,

 I get the following errors when trying to build the swtsnippets with the
 latest SWT...
This is due to a regression in the compiler [1]. Please use 2.073.x until this has been fixed. [1] https://issues.dlang.org/show_bug.cgi?id=17371 -- /Jacob Carlborg
Jun 02