www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Invalid Win32 Application - Error.jpg

reply kurzweil444 hotmail.com writes:
I am getting Invalid Win32 Application for some EXEs when I compile all of the
samples with "shell all.sh". Some of them run, some of them do not. I am running
Windows 2000 Professional. Here are my environment valiables:

PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\QuickTim
e\QTSystem\;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\GnuWin32\
bin;C:\Program Files\Nmap;C:\dm\bin;C:\dmd\bin

LINKCMD=C:\dm\bin\link.exe

LIB=C:\dmd\lib;C:\dm\lib

Anyone have any idea what is wrong?

Thanks



begin 0644 Error.jpg






M%A<8&1HE)B<H*2HT-38W.#DZ0T1%1D=(24I35%565UA96F-D969G:&EJ<W1U
M=G=X>7J#A(6&AXB)BI*3E)66EYB9FJ*CI*6FIZBIJK*SM+6VM[BYNL+#Q,7&
MQ\C)RM+3U-76U]C9VN'BX^3EYN?HZ>KQ\O/T]?;W^/GZ_\0`'P$``P$!`0$!

M`Q$$!2$Q!A)!40=A<1,B,H$(%$*1H;'!"2,S4O`58G+1"A8D-.$E\1<8&1HF
M)R I*C4V-S Y.D-$149'2$E*4U155E=865IC9&5F9VAI:G-T=79W>'EZ H.$
MA8:'B(F*DI.4E9:7F)F:HJ.DI::GJ*FJLK.TM;:WN+FZPL/$Q<;'R,G*TM/4

MEK]MI^GVNGO"]G',3/!N;<< \ CTKF(/C#XHN9XX(--TJ6:1 B1I9LS,Q.``
M`W))[5V.N?\`)1M0\G_D(?\`"(R_8-G^M\_G'E8YW[=V-O.,^]><20>(QIFK
M:EK>F:K+J-DMJ\.I7MW)%-8J96VE48Y<,P(!'W2":]&A3I."O%7.><I)Z,U1
M\9?$1_Y<M'_\!3_\55FX^*_BNT\G[5I.G0>=&)HO-LF7>AZ,N6Y4]B.*HZ1H
M6F:OXDO+E[1)H[G1Y=3L+&,E$GN0N&A1%(?:LHF`4$'$8Y(Y/6^*--L!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_`/R$;G_KJ_\`,U]$5\[W_P#R$;G_`*ZO_,U4

M4444`%%%%`!1110`4444`%<-I?B;3K7P_P"'3#J5B\L&CPQ2PR3N W^1&1RH
M9<ADVG*DC<2",%6[FL7_`(0_PQ_T+FD?^`,7_P`30A%!_&UB-_EW.F-C=MW7
M3C/W\9_='&<1YZXW-UVC>/XVL1O\NYTQL;MNZZ<9^_C/[HXSB//7&YNNT;[_
M`/PA_AC_`*%S2/\`P!B_^)H_X0_PQ_T+FD?^`,7_`,31H&I0?QM8C?Y=SIC8
MW;=UTXS]_&?W1QG$>>N-S==HWTH=>\/6-J]K8V^ PV_F><L22&-&=2Q1B!% 


M3C/W\9_='&<1YZXW-UVC??\`^$/\,?\`0N:1_P"`,7_Q-'_"'^&/^A<TC_P!



M"S;S';Q+&I;`&<`#G`'Y5:I,`HHHH&%%%%`!1110`4444`%%%%`!1110`444


M_A9'A_\`OW/_`'Z_^O111RH+A_PLCP__`'[G_OU_]>C_`(61X?\`[]S_`-^O



MRH+A_P`+(\/_`-^Y_P"_7_UZ/^%D>'_[]S_WZ_\`KT44<J"X?\+(\/\`]^Y_
M[]?_`%Z/^%D>'_[]S_WZ_P#KT44

M``LCP_\`W[G_`+]?_7H_X61X?_OW/_?K_P"O111RH+A_PLCP_P#W[G_OU_\`
M7H_X61X?_OW/_?K_`.O111RH+A_PLCP__?N?^_7_`->C_A9'A_\`OW/_`'Z_




M_P"_7_UZ/^%D>'_[]S_WZ_\`KT44<J"X?\+(\/\`]^Y_[]?_`%Z/^%D>'_[]
MS_WZ_P#KT44

7_7KR.[=9;V>1#E6D9 ?4$T44)6$?_]G?
`
end
Apr 04 2006
next sibling parent Justin C Calvarese <technocrat7 gmail.com> writes:
kurzweil444 hotmail.com wrote:
 I am getting Invalid Win32 Application for some EXEs when I compile all of the
 samples with "shell all.sh". Some of them run, some of them do not. I am
running
 Windows 2000 Professional. Here are my environment valiables:
 
 PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\QuickTim
 e\QTSystem\;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program
Files\GnuWin32\
 bin;C:\Program Files\Nmap;C:\dm\bin;C:\dmd\bin
 
 LINKCMD=C:\dm\bin\link.exe
 
 LIB=C:\dmd\lib;C:\dm\lib
 
 Anyone have any idea what is wrong?
 
 Thanks
 
 
 
 
The .jpg you attached to your message is a generic messagebox for a corrupt .exe file. Did you see any error statement on the command line? (You might need to add a "pause" command to get the command line window to stick around.) -- jcc7
Apr 04 2006
prev sibling parent reply Lionello Lunesu <lio lunesu.remove.com> writes:
kurzweil444 hotmail.com wrote:
 I am getting Invalid Win32 Application for some EXEs when I compile all of the
 samples with "shell all.sh". Some of them run, some of them do not. I am
running
 Windows 2000 Professional. Here are my environment valiables:
 
 Anyone have any idea what is wrong?
I've noticed that I still ended up with an .exe file even after link errors. So I bet something did not get linked in correctly. L.
Apr 04 2006
parent Nic Tiger <g_tiger progtech.ru> writes:
Lionello Lunesu wrote:
 kurzweil444 hotmail.com wrote:
 I am getting Invalid Win32 Application for some EXEs when I compile 
 all of the
 samples with "shell all.sh". Some of them run, some of them do not. I 
 am running
 Windows 2000 Professional. Here are my environment valiables:

 Anyone have any idea what is wrong?
I've noticed that I still ended up with an .exe file even after link errors. So I bet something did not get linked in correctly. L.
linker switch /DE removes invalid executables
Apr 04 2006