Mail Archives: djgpp/1996/01/01/01:04:49
On 31 Dec 1995, Nexus Tech Support wrote:
> I set the environment correctly... I have all the files necessary, I
> compiled hello.c once and it worked but I cannot get it to compile
> again... It chuggs along without any error messages and then gives me
> the prompt back but there is no a.out or hello.exe or whatever... What
> am I doing wrong??? I typed gcc hello.c
What happens if you type `gcc -o hello hello.c'? It should produce two
files: hello and hello.exe. If it doesn't, try `gcc -v -o hello hello.c'.
Gcc will then print all the compiler passes it invokes with all their
arguments, which should help you understand what goes wrong. You can
also use the `-save-temps' switch to gcc, which will cause it to not
delete temporary files (.i and .s) it produces during compilation, to try
and see what's wrong with them.
Does `gcc -c hello.c' produce hello.o? If so, maybe something is wrong
with the link stage.
- Raw text -