Mail Archives: djgpp/1998/09/05/10:46:03
goto options and change the directory to the directory of .c file
for me, i save all my .c files in the same directory as the program files of
djgpp
but i hide the programs files
it would be better this way
coz you wont need to change the dir when u go and compile
Sami Narhi wrote in message <199809041845 DOT OAA15564 AT delorie DOT com>...
>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 //*
> / 2 //*/
> 1
> );
> return 0;
> }
>
>like this : GCC TEST.C
>
>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
>
>
>
>
>
>
- Raw text -