www.digitalmars.com         C & C++   DMDScript  

D - Linking question

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
M#0I#0R ](&1M9 T*#0H-"DE.0TQ51$53(#T +4EI;F-L=61E7" M27!R;VIE
M8W1,:6)S("U)+BX +4DN#0I#1DQ!1U, /2 M9R M9W0 +61E8G5G#0I#3TU0
M24Q%(#T )"A#0RD )"A#1DQ!1U,I("0H24Y#3%5$15,I(" -"DQ)0E, /2  
M<')O:F5C=$QI8G-<=VEN,S(N;&EB('!R;VIE8W1,:6)S7'!H;V)O<RYL:6( 
M<')O:F5C=$QI8G-<55-%4C,R+DQ)0B!P<F]J96-T3&EB<UQ#3TU#5$PS,BY,
M24( <')O:F5C=$QI8G-<1T1),S(N3$E"('!R;VIE8W1,:6)S7%-(14Q,,S(N
M3$E"#0I,24( /2!L:6(-" T*5TE.1%E?15A%(#T =VEN9'DN97AE#0H-"E=)
M3D197U-/55)#15, /2!A<&DN9"  (&QI<W1B;W N9"  (&UE;G4N9"  <W1A
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
M9"!<#0H-"E=)3D197T]"2D5#5%, /2  87!I+F]B:B  (&QI<W1B;W N;V)J
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#0H-"DQ)0E)!4DE%4R ](" D*%=)3D197TQ)0E)!4DE%4RD-"E-/55)#15, 
M/2 D*%=)3D197U-/55)#15,I#0I/0DI%0U13(#T )"A724Y$65]/0DI%0U13
M*0T*#0H-" T*86QL.B!W:6YD>0T*#0IW:6YD>3H )"A724Y$65]33U520T53
M*2 -" DD*$-/35!)3$4I("UC("0H5TE.1%E?4T]54D-%4RD #0H))"A,24(I
M("UC(%=I;F1Y07!I+FQI8B D*%=)3D197T]"2D5#5%,I#0H))"A#3TU024Q%
M*2 M;V9W:6YD>5]L:6)?;6%I;BYE>&4 )"A)3D-,541%4RD ;6%I;BYD(%=I
M;F1Y07!I+FQI8B D*$Q)0E,I#0H))"A#3TU024Q%*2!M86EN+F0 +6]F)"A7
D24Y$65]%6$4I("0H5TE.1%E?4T]54D-%4RD )"A,24)3*0T*
`
end
Dec 17 2003