Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Novice problems

0 views
Skip to first unread message

Jeffrey P. Trueblood

unread,
Jun 3, 1999, 3:00:00 AM6/3/99
to
I am working on a Windows 95 workstation.
I am using gcc version 2.8.1

When I execute the command:
gcc test.c -o test.exe

I get the following error:
gcc.exe: test.c: No such file or directory (ENOENT)
gcc.exe: No input files

Any help would be greatly appreciated.


Martin Str|mberg

unread,
Jun 3, 1999, 3:00:00 AM6/3/99
to
Jeffrey P. Trueblood (j...@bbk2310.com) wrote:
: When I execute the command:

: gcc test.c -o test.exe
:
: I get the following error:
: gcc.exe: test.c: No such file or directory (ENOENT)
: gcc.exe: No input files

Are you sure that you have a file named "test.c" in your current
directory?


Bay Laurel, Under a Clouded Sky,

MartinS

Nate Eldredge

unread,
Jun 3, 1999, 3:00:00 AM6/3/99
to dj...@delorie.com
Jeffrey P. Trueblood wrote:
>
> I am working on a Windows 95 workstation.
> I am using gcc version 2.8.1
>
> When I execute the command:
> gcc test.c -o test.exe
>
> I get the following error:
> gcc.exe: test.c: No such file or directory (ENOENT)
> gcc.exe: No input files

Did you actually create the source file test.c? Is it in the current
directory? If not, do so. (You can write the source with Notepad if
nothing else.)
--

Nate Eldredge
na...@cartsys.com

Nathan "DrumNark" Brown

unread,
Jun 3, 1999, 3:00:00 AM6/3/99
to
make sure you have path=c:\djgpp or whatever in you autoexec.bat, then just
make sure you are in the directory with the file. You don't need to be in
the directory with gcc with the path set, just the file. That should do it

-Nathan

Davin McCall

unread,
Jun 4, 1999, 3:00:00 AM6/4/99
to
On Thu, 03 Jun 1999 14:11:49 -0700, Nate Eldredge <na...@cartsys.com>
wrote:

>Did you actually create the source file test.c? Is it in the current
>directory? If not, do so. (You can write the source with Notepad if
>nothing else.)

... but be sure when you save it to surround the filename (test.c) in
quotes, or notepad may append a ".txt" to it.

Davin.
__________________________________________________________
*** davmac - sharkin'!! dav...@iname.com ***
my programming page: http://yoyo.cc.monash.edu.au/~davmac/

Eli Zaretskii

unread,
Jun 6, 1999, 3:00:00 AM6/6/99
to Jeffrey P. Trueblood

On Thu, 3 Jun 1999, Jeffrey P. Trueblood wrote:

> When I execute the command:
> gcc test.c -o test.exe
>
> I get the following error:
> gcc.exe: test.c: No such file or directory (ENOENT)

Type "dir test.*" in that directory and make sure you indeed have
test.c there. Some Windows editors create test.c.txt or some such
because they think they know better. Don't use those editors if you
care about your sanity.

Johan Venter

unread,
Jun 7, 1999, 3:00:00 AM6/7/99
to
> Type "dir test.*" in that directory and make sure you indeed have
> test.c there. Some Windows editors create test.c.txt or some such
> because they think they know better. Don't use those editors if you
> care about your sanity.

Or just open up explorer, go to view-options (or similar) and find the
option
"hide extensions of known file types", make sure it's unchecked, and when
making
a new file, right-click on the directory, go to new-textfile and name it.
That way you will
see if programs are messing up your names, and notepad won't mess them up
when
you re-save.

Or, just add ""s around the name of the file when saving in Notepad. :-)

--
Johan Venter
ICQ 3643877
Visit "The TPU DJGPP Interest Group":
http://surf.to/djgppig


0 new messages