GCC and Windows 98
Martin Kahlert
martin.kahlert@keksy.mchp.siemens.de
Mon Sep 6 02:10:00 GMT 1999
[Posted and mailed]
In article < 7qovlu$j55$1@news7.svr.pol.co.uk >,
"Stef" <stef@email.address> 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?
> I am running MS Windows 98 and the version of the GCC.EXE is 2.7-97r1a.
> I have tried runing the command "gcc hello.c" with just the default
> settings, changing the FILES in the CONFIG.SYS file, tried different folder
> locations (to prevent any DOS 8.3 problems) all returning the same STACK
> FAULT error.
I don't know, what gcc you use. Try the one from
http://www.xraylith.wisc.edu/~khan/software/gnu-win32
mingw32 is the version, which produces native win32 apps.
--
esa$ gcc -Wall -o ariane5 ariane5.c
ariane5.c: 666: warning: long float implicitly truncated to unsigned type
esa$ ariane5
More information about the Gcc-help
mailing list