From: "EarlBlunt" Newsgroups: comp.os.msdos.djgpp References: <199809041845 DOT OAA15564 AT delorie DOT com> Subject: Re: Hi Date: Sat, 5 Sep 1998 22:40:04 -0700 Lines: 43 NNTP-Posting-Host: mr-84-97.tm.net.my Message-ID: <35f14cd8.0@news4> Organization: TMnet Malaysia To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 > > 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 > > > > > >