Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: "Thomas Nilsson" Newsgroups: gmane.os.cygwin Subject: Re: GCC 2.95.3-5 produces .exe un-executable under w98 and ME Date: Thu, 20 Jun 2002 22:46:18 +0200 Organization: Programvaruindustrialisering Lines: 141 Message-ID: References: <01dc01c21692$d1181d50$0300a8c0 AT ThoNi> NNTP-Posting-Host: h200n1fls34o814.telia.com X-Trace: main.gmane.org 1024605966 9636 217.211.40.200 (20 Jun 2002 20:46:06 GMT) X-Complaints-To: usenet AT main DOT gmane DOT org NNTP-Posting-Date: Thu, 20 Jun 2002 20:46:06 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Thanks for all your kind pointers! Not! Anyway I have dug around and found that it turned out to be a problem with resources. In windows98/ME somehow resource IDs above 40000 (or perhaps 35656?) causes the .exe to become unrecognized. Anyone is welcome to comment on this, but I am recording this so that someone searching and finding my previous posts will have a clue as to what *my* problem was. /t "Thomas Nilsson" skrev i meddelandet news:aeo42a$lip$2 AT main DOT gmane DOT org... > Ok, I was trying to be polite but I really need some pointers here. I don't > want to "Why did you break everything..." Please? > > /Thomas > > > > "Thomas Nilsson" skrev i meddelandet > news:01dc01c21692$d1181d50$0300a8c0 AT ThoNi... > I have researched the matter further and discovered that it only applies to > Windows applications. When I link with "-mwindows" I get: > > /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: > warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000 > > Adding "-e _mainCRTStartup" as per the GNU Pro manuals (which I have not > needed to do before) did only remove the message. The .exe's was still not > executable on win98 or ME. > > How can I find out why w98 and ME don't like the executables? > > I can't find any information about the various cygwin crt*.o and for which > options > they are used. Should any of them not contain WinMainCRTStartup? Could > somebody > point me in a direction please? > > I am attaching a "gcc -v" printout. > > /Thomas > > > gcc -o > run -g -v -mwindows -Wall -funsigned-char -I../../WindowsGLK/Include -DGLK > -DWINGLK glkstart.o glkio.o exe.o arun.o sysdep.o rules.o debug.o args.o > inter.o parse.o stack.o decode.o term.o reverse.o readline.o params.o main.o > alan.version.o winglk.o arun.res -g -mwindows ../../WindowsGLK/Glk.lib > Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs > gcc version 2.95.3-5 (cygwin special) > /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe --subsystem > windows -Bdynamic --dll-search-prefix=cyg -o arun.exe > /usr/lib/crt0.o -L/usr/local/lib -L/usr/lib -L/usr/lib/w32api -L/usr/lib/gcc > -lib/i686-pc-cygwin/2.95.3-5 glkstart.o glkio.o exe.o arun.o sysdep.o > rules.o debug.o args.o inter.o parse.o stack.o decode.o term.o reverse.o > readline.o params.o main.o alan.version.o winglk.o arun.res > ../../WindowsGLK/Glk.lib -lgcc -lcygwin -lgdi32 -lcomdlg32 -luser32 -lkernel > 32 -ladvapi32 -lshell32 -lgcc > /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: > warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000 > make: [winglk] Error 1 (ignored) > > > > "Thomas Nilsson" skrev i meddelandet > news:00a301c21571$78bb8c40$0300a8c0 AT ThoNi... > I am a pleased cygwin user since many years. It has always served me well as > a platform for easy cross-platform development. > > However I recently found that GCC produced .EXEs that run on NT and w2000 > but not on 98 & ME. Message produced on failing systems is "The > file appears to be corrupt. Reinstall the file, and then try again." > And then "Windows can not run this file because it is in the wrong format." > > This occurs with both cygwin and mingw compiles on both w2k and w98. > > I have GCC 2.95.3-5, binutils 20011002-1, win32 1.5-1. > > I am sure this problem did not exist about a month ago. I have definitely > upgraded cygwin and made a couple of changes to the software since then. > What kind of changes to my software could have cause this behaviour? > > > /Thomas Nilsson > > > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > > > > > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > > > > > > > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/