From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stef" To: help-gcc@gnu.org Subject: Re: GCC and Windows 98 Date: Thu, 30 Sep 1999 23:56:00 -0000 Message-ID: <7r0s3c$919$1@news4.svr.pol.co.uk> References: <7qovlu$j55$1@news7.svr.pol.co.uk> <7r008g$bcg$1@news.mch.sbs.de> X-SW-Source: 1999-09n/msg00047.html Message-ID: <19990930235600.elr4Sy5BZiytVblV99pvtW5iwuPuRwvTVkomyzYSCls@z> In response to your query about the void __main(){} prototype and the exit() function, these were at the suggestion of the readme file that came with the native Hitachi SH2 development board. Tried again with a simple for loop and no optimisation. Guess what, same Stack Fault. In essence I am trying to compile the code for subsequent serial download to an SH2 processor. Unfortunately it doesn't compile at all (even as a simple win32 'exe). I've had it working in the past on other PC's and my colleague has it working happily (exact same version) on his PC. And I'm baffled. I can only conclude that there is a SW/HW conflict at a much lower level (I sincerely hope not, and at the moment don't really count it as a viable answer...). I have again tried it with the previous response (as an -luser32 exe) but again the exact same stack fault. At a loose end here! [Running Windows98, Gigabyte Motherboard, Celeron 400MHx, 10GB HDD and 64MB RAM... shouldn't cause a problem I think?] Thanks in advance, Stef Martin Kahlert wrote in message news: 7r008g$bcg$1@news.mch.sbs.de ... > [Posted and mailed] > > In article < 7qovlu$j55$1@news7.svr.pol.co.uk >, > "Stef" writes: > > ################################ > > > > void __main(){} > > > > void exit() > > { > > while(1); > > } > > > > main() > > { > > return 0; > > } > > > > ################################ > I don't know, what this should be. > What's the void __main(){} line good for? > Why do you replace the exit reoutine (which > is called automatically at the end of any main routine) > with a never ending loop?