Mail Archives: djgpp/1998/09/04/17:16:25
Sami Narhi wrote:
>
> How do you compile .c to .exe ?
> When I for example try to compile this file (test.c) to test.exe :
> #include <stdio.h>
int main ()
{
printf ("%d \n" ,10);
return 0;
}
> like this : GCC TEST.C
Try gcc test.c -o test.exe
>
> It says
>
> gcc.exe: test.c: No such file or directory (ENOENT)
> gcc.exe: No input files
>
> And if I include some switches it says: CAN'T FIND STUDIO.H or something.
>
> Whats wrong ???
>
> sami DOT narhi AT avenet DOT fi
Try reading the readme.1st, and using the corrected code above.
(You can't use comments in the middle of a command).
If you have any furture problems, try a)reading the faq
b)posting the whole of the test
that gcc puts out. Do this using the redir utility.
Peter Allen
- Raw text -