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

Having trouble compiling drawing.d

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
Lynn



Joined: 27 Aug 2004
Posts: 89

PostPosted: Thu Dec 23, 2004 7:42 am    Post subject: Having trouble compiling drawing.d Reply with quote

<alert comment="newbie">
I was attempting to rebuild dfl.lib version 0.7 so as to try out treeview TVS_SINGLEEXPAND functionality and form MINMAXINFO functionality (and perhaps contribute to dfl implementation).

I'm not aware of your compilation flags (and am fuzzy about many of D syntax), but
dmd -c drawing.d
had errors with dmd version 0.109:
drawing.d(147): struct dfl.drawing.Rect no size yet for forward reference
drawing.d(147): struct dfl.drawing.Rect no size yet for forward reference
drawing.d(147): struct dfl.drawing.Rect no size yet for forward reference
drawing.d(362): struct dfl.drawing.Color no size yet for forward reference
drawing.d(362): struct dfl.drawing.Color no size yet for forward reference
drawing.d(362): struct dfl.drawing.Color no size yet for forward reference
drawing.d(362): struct dfl.drawing.Color no size yet for forward reference
drawing.d(362): struct dfl.drawing.Color no size yet for forward reference
drawing.d(362): struct dfl.drawing.Color no size yet for forward reference

</alert>
Back to top
View user's profile Send private message
larsivi
Site Admin


Joined: 27 Mar 2004
Posts: 453
Location: Trondheim, Norway

PostPosted: Thu Dec 23, 2004 8:29 am    Post subject: Reply with quote

I'm not sure if this is a compiler bug or not, but it most likely has to do with the fact that you only compile a single file which somehow depends on some other file, especially the struct in question. Possibly an import is needed prior to the lines mentioned.
Back to top
View user's profile Send private message
Lynn



Joined: 27 Aug 2004
Posts: 89

PostPosted: Thu Dec 23, 2004 12:59 pm    Post subject: Reply with quote

It might be helpful to include the makefile (or makelib.bat or equivalent) with dfl_nn.zip so that dfl.lib (and dfltest.exe and maybe dfl_debug.lib) could be rebuilt locally. That would facilitate other people contributing to the progress of dfl.

Another suggestion if applicable: include Visual Studio project .dsp and .dsw files that build dfl.lib and some or all of the example programs included (dfl.lib, dfltest.exe, treeview.exe, listbox.exe, beginner.exe, etc.). It would be helpful to be able to step-into dfl code to learn more about what it is doing.

I'm getting more and more impressed with dfl. Good Job!
Back to top
View user's profile Send private message
Nova



Joined: 18 Sep 2004
Posts: 23

PostPosted: Thu Dec 23, 2004 1:28 pm    Post subject: Reply with quote

Same here on both accounts. Very impressive so far, and having a makefile with the code would be extremely appreciated!
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Thu Dec 23, 2004 5:15 pm    Post subject: Reply with quote

Today's snapshot ( http://www.dprogramming.com/dfl/snapshots/ ) includes makelib.bat.
Back to top
View user's profile Send private message
Lynn



Joined: 27 Aug 2004
Posts: 89

PostPosted: Fri Dec 24, 2004 6:46 am    Post subject: Reply with quote

Thanks for providing the snapshot.

When I try makelib.bat (with ECHO ON), there is an error with the final lib command:

Error: Corrupt file 'user32_dfl.lib', Typ=xf1, Len=x1d00

I can see that the PATH is ok, because the banner identifies Digital Mars as the "vender" for implib and lib.

Interesting/odd ... drawing.d must be compiled with base.d on the same command line:

dmd -c -inline drawing ... has errors
dmd -c -inline base drawing ... compiles ok

Seems like this would confuse "make" and ide's?

My directory setup is a bit nonstandard:
X:\DevTools\Dmd for dmd
and also dmc is merged with dmd:
X:\DevTools\Dmd for dmc

The lib files from dmc are mostly from 1996:
08/08/1996 07:30 PM 53,760 ADVAPI32.LIB
06/24/2001 04:41 PM 9,728 COMCTL32.LIB
08/08/1996 07:30 PM 3,072 COMDLG32.LIB
09/22/2004 10:21 AM 159,232 core32.lib
12/04/1995 08:07 AM 2,560 CTL3D32.LIB
12/23/2004 05:58 PM 1,184,256 dfl.lib
06/19/2001 03:10 PM 11,776 gc.lib
08/08/1996 07:30 PM 35,328 GDI32.LIB
08/08/1996 07:30 PM 79,872 KERNEL32.LIB
12/04/1995 08:07 AM 4,608 ODBC32.LIB
08/08/1996 07:30 PM 32,256 OLE32.LIB
08/14/1996 05:24 AM 24,064 OLEAUT32.LIB
12/05/2004 01:15 AM 582,656 phobos.lib
08/08/1996 07:30 PM 212,480 SHELL32.LIB
09/05/2004 12:32 AM 548,864 snn.lib
08/08/1996 07:30 PM 60,416 USER32.LIB
08/14/1996 05:24 AM 170,496 UUID.LIB
12/22/2004 08:18 AM 150,016 win32.lib
08/08/1996 07:30 PM 22,016 WINMM.LIB
08/08/1996 07:30 PM 18,432 WINSPOOL.LIB
08/08/1996 06:30 PM 11,264 WS2_32.LIB
08/08/1996 07:30 PM 6,656 WSOCK32.LIB
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL 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