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.
Are you sure that you have a file named "test.c" in your current
directory?
Bay Laurel, Under a Clouded Sky,
MartinS
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
>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/
> 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.
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