Sender: ladeira AT interaction DOT com DOT br Message-ID: <3AF2BAC3.C7993425@automatos.com> Date: Fri, 04 May 2001 11:20:51 -0300 From: Andre Ladeira Organization: Automatos X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: help References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com TopDogg962 AT aol DOT com wrote: > hi i am a beginer at programing and i just got sams teach your self c in 21 > days so i got your compiler off the disk and i need help i looked at the faq, > didnt work so heres the problem > > when i put this in > gcc hello.c -o hello.exe > it gives me this message > gcc.exe: hello.c: No such file or directory (ENOENT) > gcc.exe: No input files > > heres the environ > > TMP=C:\WINDOWS\TEMP > TEMP=C:\WINDOWS\TEMP > PROMPT=$p$g > winbootdir=C:\WINDOWS > COMSPEC=C:\WINDOWS\COMMAND.COM > MSINPUT=C:\MSINPUT > PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\WINDOWS;C:\WINDOWS\COMMAND;;C:\DJGPP\BIN > > ;C:\PROGRA~1\NETWOR~1\MCAFEE~1;C:\DJGPP\BIN > DJGPP=C:\DJGPP\DJGPP.ENV > windir=C:\WINDOWS > SNDSCAPE=C:\WINDOWS > BLASTER=A220 I7 D1 T2 > > heres the config.sys file > > REM DEVICE=C:\WINDOWS\HIMEM.SYS > REM DEVICE=C:\WINDOWS\EMM386.EXE > FILES=60 > > you must download the autoexec.bat file though > > thanks,topdogg > > ------------------------------------------------------------------------ > SET SNDSCAPE=C:\WINDOWS > C:\PROGRA~1\NETWOR~1\MCAFEE~1\SCAN.EXE C:\ > @IF ERRORLEVEL 1 PAUSE > @ECHO OFF > SET BLASTER=A220 I7 D1 T2 > PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;%path%;;C:\DJGPP\BIN > SET MSINPUT=C:\MSINPUT > > REM [CD-ROM Drive] > > REM [Display] > > REM [Sound, MIDI, or Video Capture Card] > > REM [Mouse] > > REM [Miscellaneous] > > REM Environment Settings For McAfee VirusScan > SET PATH=%PATH%;C:\PROGRA~1\NETWOR~1\MCAFEE~1;C:\DJGPP\BIN > > SET DJGPP=C:\DJGPP\DJGPP.ENV Hi TopDogg Your only problem in this case is that the compiler can't find the source code (hello.c). There are two things you can do to solve this: 1- Change the PATH in autoexec.bat: PATH=%PATH%;C:\(your source code directory here); save and run autoexec.bat. or 2- write the full path to gcc: gcc c:\xxx\yyy\hello.c -o hello.exe I hope it can help you Andre Lima ladeira AT automatos DOT com