From: <rei...@go...> - 2001-04-03 20:56:57
|
On Tue, 03 Apr 2001, G. Bard Ermentrout wrote: > Hi >=20 > I have compiled a program using mingw natively -- call it w1.exe and th= en > compiled the same program using the cross-compiler on a Linux box. Call= it > w2.exe. w1.exe runs fine under "wine" but w2.exe does not run saying > that it needs msvcrt.dll to run. Did I miss some flags in cross-compili= ng?=20 Every windows application will need msvcrt.dll to run. This is something = like the libc.a and other libraries in Linux. I have used objdump to see which dll's need my cross compiler and which d= ll's are needed by a native program build by Mircosoft. There is a difference: The cross build program needs msvcrt.dll. The native program needs MSVCRT.dll. On Windows this doesn't matter, but maybe wine has problems with the lowe= r case version. I couldn't believe it, but it can be possible. You can use: objdump -x w1.exe > w1.dump objdump -x w2.exe > w2.dump diff w1.exe w2.exe | less Then you will see the difference. Have you tried to run w2.exe on Windows? Does it work? Some questions about your cross compiler: Which sources have you used? How did you build your cross compiler? Which runtime version are you using? Which version of binutils? --=20 Ing. Reinhard Jessich mailto: rei...@go... A-1190 Vienna, Goergengasse 2/2/1 phone: +43/1/3692600 http://go.to/jessich mobile: +43/664/1735439 |