This one obsoletes the previous one I sent on the same subject. ChangeLog mingw links in comdlg32, shell32, and advapi32 by default. --- tools/winegcc.c.A4 2003-01-04 10:30:23.000000000 -0500 +++ tools/winegcc.c 2003-01-04 15:52:27.000000000 -0500 @@ -137,6 +137,9 @@ gcc_argv[i++] = argv[j]; } if (use_stdlib && use_msvcrt) gcc_argv[i++] = "-lmsvcrt"; + if (gui_app) gcc_argv[i++] = "-lcomdlg32"; + if (gui_app) gcc_argv[i++] = "-lshell32"; + gcc_argv[i++] = "-ladvapi32"; } else { -- Dimi.