Mail Archives: djgpp/1997/05/08/18:47:57
John Richter (John DOT Richter AT yale DOT edu) wrote:
: #include <stdio.h>
: 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 <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford
- Raw text -