www.digitalmars.com         C & C++   DMDScript  

D - Linking question, order of files in build

Some weird behavior when building the exact same files, but ordering them
different.

The behavior:

    When building Windy with the makefile, I close the window
(PostQuitMessage(0) ) and it works as expected.

    When building with DIDE, I close the window and the app eats up all my
CPU for about 5 mins then dies off.

What about the order of the files could cause this behavior ?  After doing
some debugging, I found that both apps complete WinMain and return, only the
DIDE build eats up all the CPU for about 5 mins.

attached is the makefile, and below is the DIDE output.

Thanks!

------------------------------------------------------------
C:\dmd\bin\..\..\dm\bin\link.exe
C:\PROGRA~1\DIDE\Projects\Windy\api+C:\PROGRA~1\DIDE\Projects\Windy\app+C:\P
ROGRA~1\DIDE\Projects\Windy\bitmap+C:\PROGRA~1\DIDE\Projects\Windy\button+C:
\PROGRA~1\DIDE\Projects\Windy\combobox+C:\PROGRA~1\DIDE\Projects\Windy\dialo
g+C:\PROGRA~1\DIDE\Projects\Windy\edit+C:\PROGRA~1\DIDE\Projects\Windy\font+
C:\PROGRA~1\DIDE\Projects\Windy\listbox+C:\PROGRA~1\DIDE\Projects\Windy\list
view+C:\PROGRA~1\DIDE\Projects\Windy\main+C:\PROGRA~1\DIDE\Projects\Windy\me
nu+C:\PROGRA~1\DIDE\Projects\Windy\msg+C:\PROGRA~1\DIDE\Projects\Windy\os+C:
\PROGRA~1\DIDE\Projects\Windy\rect+C:\PROGRA~1\DIDE\Projects\Windy\static_+C
:\PROGRA~1\DIDE\Projects\Windy\treeview+C:\PROGRA~1\DIDE\Projects\Windy\wind
ow,Windy.exe,,win32.lib+phobos.lib+USER32.LIB+COMCTL32.LIB+GDI32.LIB+SHELL32
.LIB+user32+kernel32/co/noi;


C:\dmd\bin\dmd.exe -g -gt -debug  -IC:\dmd\include  -IC:\Projects\Windy\D
win32.lib phobos.lib USER32.LIB COMCTL32.LIB GDI32.LIB
ELL32.LIB   -odC:\PROGRA~1\DIDE\Projects\Windy -ofWindy.exe
"C:\Projects\Windy\D\windy\api.d" "C:\Projects\Windy\D\windy\app.d"
"C:\Projects\Windy\D\windy\bitmap.d" "C:\Projects\Windy\D\windy\button.d"
"C:\Projects\Windy\D\windy\combobox.d" "C:\Projects\Windy\D\windy\dialog.d"
"C:\Projects\Windy\D\windy\edit.d" "C:\Projects\Windy\D\windy\font.d"
"C:\Projects\Windy\D\windy\listbox.d" "C:\Projects\Windy\D\windy\listview.d"
"C:\Program Files\DIDE\Projects\Windy\main.d"
"C:\Projects\Windy\D\windy\menu.d" "C:\Projects\Windy\D\windy\msg.d"
"C:\Projects\Windy\D\windy\os.d" "C:\Projects\Windy\D\windy\rect.d"
"C:\Projects\Windy\D\windy\static_.d" "C:\Projects\Windy\D\windy\treeview.d"
"C:\Projects\Windy\D\windy\window.d"
------------------------------------------------------------
Build started on 12/17/2003 at 18:21:36



Build Succeeded




begin 666 makefile.dat


M24Q%(#T
M<')O:F5C=$QI8G-<=VEN,S(N;&EB('!R;VIE8W1,:6)S7'!H;V)O<RYL:6( 

M24( <')O:F5C=$QI8G-<1T1),S(N3$E"('!R;VIE8W1,:6)S7%-(14Q,,S(N


M=&EC7RYD(%P-" ED:6%L;V<N9"  (&US9RYD("  =VEN9&]W+F0 7 T*"6%P
M<"YD(&5D:70N9"  ("  ;&ES=&-T<FPN9"  7 T*"6)U='1O;BYD("!L:7-T
M=FEE=RYD("!O<RYD(%P-" EC;VUB;V)O>"YD("!F;VYT+F0 ("  (')E8W0N

M("  ;65N=2YO8FH ('-T871I8U\N;V)J(%P-" ED:6%L;V<N;V)J("  ;7-G
M+F]B:B  ('=I;F1O=RYO8FH 7 T*"6%P<"YO8FH 961I="YO8FH ("  (&QI
M<W1C=')L+F]B:B  7 T*"6)U='1O;BYO8FH (&QI<W1V:65W+F]B:B  ;W,N
M;V)J(%P-" EC;VUB;V)O>"YO8FH (&9O;G0N;V)J("  ("!R96-T+F]B:B!<





M*2 M;V9W:6YD>5]L:6)?;6%I;BYE>&4 )"A)3D-,541%4RD ;6%I;BYD(%=I

D24Y$65]%6$4I("0H5TE.1%E?4T]54D-%4RD )"A,24)3*0T*
`
end
Dec 17 2003