FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems compiling with the latest D compiler

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT
View previous topic :: View next topic  
Author Message
kib2



Joined: 08 Jun 2007
Posts: 6
Location: France

PostPosted: Sat Jun 23, 2007 5:55 am    Post subject: Problems compiling with the latest D compiler Reply with quote

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
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sun Jun 24, 2007 7:55 am    Post subject: Reply with quote

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
View user's profile Send private message
kib2



Joined: 08 Jun 2007
Posts: 6
Location: France

PostPosted: Mon Jun 25, 2007 5:48 am    Post subject: Reply with quote

thanks doob,

I'll try to install tioport.
Back to top
View user's profile Send private message
ideage



Joined: 12 Jul 2006
Posts: 63
Location: china

PostPosted: Tue Jun 26, 2007 7:48 pm    Post subject: Reply with quote

Modify ref to other var name.

I.E.
refs
Back to top
View user's profile Send private message Send e-mail
kib2



Joined: 08 Jun 2007
Posts: 6
Location: France

PostPosted: Sun Jul 08, 2007 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
kib2



Joined: 08 Jun 2007
Posts: 6
Location: France

PostPosted: Sun Jul 08, 2007 8:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group