Mail Archives: djgpp/1999/08/12/17:19:11
you forgot the INT before main() ...
and if you are running djgpp from a text editor under windows,
you have to know, that djgpp is a dos compiler and doesn't
accept directory- or file-names larger than 8 letters
it will output the error message that you wrote:
{
gcc.exe: p1.c: No such file or directory (ENOENT)
gcc.exe: No input files
}
/* thus is my 1st c program */
#include <stdio.h>
int main()
{
printf ("hello world\n");
return 0;
}
Lee Goldblatt wrote:
> here's a chunk of my dos console, I added the two required lines in my
> autoexec.bat file, below that I tried to compile and create (i assume)
> p1.exe .
>
> C:\>path
> PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND
>
> C:\>gcc p1.c -o p1.exe
> gcc.exe: p1.c: No such file or directory (ENOENT)
> gcc.exe: No input files
> ------------------------------------------------------------------------
> --------------------------
>
> I used a win95 text editor w/the source code:
> and I pasted this text file into my c:\djgpp folder
>
> /* thus is my 1st c program */
> #include <stdio.h>
>
> main()
> {
> printf ("hello world\n");
> return 0;
> }
>
> ------------------------------------------------------------------------
> -----------------
>
> I don't know squat but I'm trying, can anyone make some suggestions
> to help me compile?
- Raw text -