Thread overview
Problem building SWTSnippets with D 2.074.x
6 days ago
Mike James
5 days ago
Mike Parker
4 days ago
JamesD
June 02
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.
June 02
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
6 days ago
On Friday, 2 June 2017 at 14:01:35 UTC, Jacob Carlborg wrote:
> 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

Hi Jacob,

Has there been any progress on this matter? The snippets still don't compile with the latest compiler...

Regards, Mike
5 days ago
On Tuesday, 14 November 2017 at 11:33:44 UTC, Mike James wrote:

>
> Has there been any progress on this matter? The snippets still don't compile with the latest compiler...
>

https://github.com/dlang/dmd/pull/7315
4 days ago
On Wednesday, 15 November 2017 at 07:19:17 UTC, Mike Parker wrote:
> On Tuesday, 14 November 2017 at 11:33:44 UTC, Mike James wrote:
>
>>
>> Has there been any progress on this matter? The snippets still don't compile with the latest compiler...
>>
>
> https://github.com/dlang/dmd/pull/7315

Until the issue above is resolved, you can compile with dwtlib.
dwtlib is a work around that uses the *.d source files instead of the *.di files.

     dwtlib - DUB package for the D Widget Toolkit
     https://code.dlang.org/packages/dwtlib

Also try gdub, a gui to test individual snippets (see screen shot);

     GDUB is a DWT GUI front end for DUB, a D language build tool.
     https://code.dlang.org/packages/gdub