View previous topic :: View next topic |
Author |
Message |
kib2
Joined: 08 Jun 2007 Posts: 6 Location: France
|
Posted: Sat Jun 23, 2007 5:55 am Post subject: Problems compiling with the latest D compiler |
|
|
Hi,
I'm new to D and wanted to built DWT on Windows with the latest D Compiler Package.
After double-clicking make-dwt-lib.bat, here's my output:
Code: |
C:\dmd\import>bud_win_3.04 -release -d -O -clean -inline -lib -full -allobj dwt
\all.d -T..\lib\dwt.lib -version=OLE_COM -version=DRAG_DROP
dwt\ole\win32\oleclientsite.d(576): no identifier for declarator int
dwt\ole\win32\oleclientsite.d(576): semicolon expected, not 'ref'
dwt\ole\win32\oleclientsite.d(576): found 'ref' instead of statement
dwt\ole\win32\oleclientsite.d(577): expression expected, not 'ref'
dwt\ole\win32\oleclientsite.d(579): expression expected, not 'ref'
dwt\ole\win32\oleframe.d(227): no identifier for declarator int
dwt\ole\win32\oleframe.d(227): semicolon expected, not 'ref'
dwt\ole\win32\oleframe.d(227): found 'ref' instead of statement
dwt\ole\win32\oleframe.d(228): expression expected, not 'ref'
dwt\ole\win32\oleframe.d(232): expression expected, not 'ref'
dwt\ole\win32\oleeventsink.d(106): no identifier for declarator int
dwt\ole\win32\oleeventsink.d(106): semicolon expected, not 'ref'
dwt\ole\win32\oleeventsink.d(106): found 'ref' instead of statement
dwt\ole\win32\oleeventsink.d(107): expression expected, not 'ref'
dwt\ole\win32\oleeventsink.d(109): expression expected, not 'ref'
-----------------------------------------
Build debug version ...
C:\dmd\import>bud_win_3.04 -debug -g -unittest -clean -lib -full -allobj dwt\al
l.d -T..\lib\dwtd.lib -version=OLE_COM -version=DRAG_DROP
dwt\ole\win32\oleclientsite.d(576): no identifier for declarator int
dwt\ole\win32\oleclientsite.d(576): semicolon expected, not 'ref'
dwt\ole\win32\oleclientsite.d(576): found 'ref' instead of statement
dwt\ole\win32\oleclientsite.d(577): expression expected, not 'ref'
dwt\ole\win32\oleclientsite.d(579): expression expected, not 'ref'
dwt\ole\win32\oleframe.d(227): no identifier for declarator int
dwt\ole\win32\oleframe.d(227): semicolon expected, not 'ref'
dwt\ole\win32\oleframe.d(227): found 'ref' instead of statement
dwt\ole\win32\oleframe.d(228): expression expected, not 'ref'
dwt\ole\win32\oleframe.d(232): expression expected, not 'ref'
dwt\ole\win32\oleeventsink.d(106): no identifier for declarator int
dwt\ole\win32\oleeventsink.d(106): semicolon expected, not 'ref'
dwt\ole\win32\oleeventsink.d(106): found 'ref' instead of statement
dwt\ole\win32\oleeventsink.d(107): expression expected, not 'ref'
dwt\ole\win32\oleeventsink.d(109): expression expected, not 'ref'
-----------------------------------------
you may need to copy "dwt.lib" "dwtd.lib" to \dmd\lib |
Can you help me ?
Thanks. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Sun Jun 24, 2007 7:55 am Post subject: |
|
|
DWT is quite outdated now, maybe you could check out SWT in tioport http://www.dsource.org/projects/tioport/wiki/port_swt
If you still want to use DWT then you have to make some changes, ref is now a keyword so just replace the variable name with something else. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
kib2
Joined: 08 Jun 2007 Posts: 6 Location: France
|
Posted: Mon Jun 25, 2007 5:48 am Post subject: |
|
|
thanks doob,
I'll try to install tioport. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
ideage
Joined: 12 Jul 2006 Posts: 63 Location: china
|
Posted: Tue Jun 26, 2007 7:48 pm Post subject: |
|
|
Modify ref to other var name.
I.E.
refs |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
kib2
Joined: 08 Jun 2007 Posts: 6 Location: France
|
Posted: Sun Jul 08, 2007 7:59 am Post subject: |
|
|
Thanks,
that's what I've done, but now :
Code: | Build debug version ...
C:\dmd\import>bud_win_3.04 -debug -g -unittest -clean -lib -full -allobj dwt\al
l.d -T..\lib\dwtd.lib -version=OLE_COM -version=DRAG_DROP
dwt\accessibility\accessible.d(507): Error: cannot implicitly convert expression
(cast(IUnknown)(this.objIAccessible)) of type std.c.windows.com.IUnknown to voi
d*
dwt\accessibility\accessible.d(513): Error: cannot implicitly convert expression
(cast(IDispatch)(this.objIAccessible)) of type dwt.internal.ole.win32.OAIDL.IDi
spatch to void*
dwt\accessibility\accessible.d(519): Error: cannot implicitly convert expression
(cast(IAccessible)(this.objIAccessible)) of type dwt.internal.ole.win32.ifs.IAc
cessible to void*
dwt\accessibility\accessible.d(525): Error: cannot implicitly convert expression
(cast(IEnumVARIANT)(this.objIEnumVARIANT)) of type dwt.internal.ole.win32.ifs.I
EnumVARIANT to void*
dwt\accessibility\accessible.d(1164): Error: cannot implicitly convert expressio
n ((cast(Accessible)nextItem).objIAccessible) of type dwt.accessibility.accessib
le._IAccessibleImpl to void*
-----------------------------------------
you may need to copy "dwt.lib" "dwtd.lib" to \dmd\lib |
What do I have to change in accessible.d ? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
kib2
Joined: 08 Jun 2007 Posts: 6 Location: France
|
Posted: Sun Jul 08, 2007 8:17 am Post subject: |
|
|
Sorry, I found this :
Code: | bud_win_3.04 -release -d -O -clean -inline -lib -full -allobj dwt
\all.d -T..\lib\dwt.lib -version=OLE_COM -version=DRAG_DROP -v1 |
and it works. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|