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
Dec 17 2003