From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Can't get djgpp to work at all Date: 6 May 1997 13:36:58 GMT Organization: Oxford University, England Lines: 32 Message-ID: <5knc5q$dnb@news.ox.ac.uk> References: <336E15CE DOT 3BBF AT yale DOT edu> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk John Richter (John DOT Richter AT yale DOT edu) wrote: : #include : main() : { : printf("Hello world\"); : } The printf call is wrong; the string is not terminated. You probably meant to put a `n' between `\' and `"'. Also, your main() function has no specified return type, so it defaults to int; yet you aren't returning a value. Put `return 0;' at the end of the function. : and my command line is: : gcc -o junk.exe junk.c : When I run junk.exe, my machine locks up. What's wrong here? I'm surprised junk.exe exists. Make the above corrections, then try this: redir -o output.txt -eo gcc -v -o junk.exe junk.c Post the file `output.txt' that this creates, it will make diagnosing your problem easier. -- George Foot Merton College, Oxford