Mail Archives: djgpp/1999/08/12/15:59:36
Message-ID: | <37B22D42.2D89@ns.sympatico.ca>
|
From: | Klaas <klaas1 AT ns DOT sympatico DOT ca>
|
Organization: | N/A
|
X-Mailer: | Mozilla 3.04 (Win95; I)
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: newbie help me pleez... here's the error message si get:
|
References: | <7ot5iq$rnu$1 AT autumn DOT news DOT rcn DOT net>
|
Lines: | 50
|
Date: | Wed, 11 Aug 1999 23:11:14 -0300
|
NNTP-Posting-Host: | 142.177.95.15
|
X-Trace: | sapphire.mtt.net 934423850 142.177.95.15 (Wed, 11 Aug 1999 23:10:50 ADT)
|
NNTP-Posting-Date: | Wed, 11 Aug 1999 23:10:50 ADT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
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?
You must be currently in the directory c:\djgpp if that is where your c
file is. You are instead in your root dir.
The best option is to create a different dir for your programs, and run
gcc from there.
eg.
if "c:\lee\c" contained my hello.c program, then to compile:
c:\>cd\lee\c
c:\lee\c>gcc p1.c -o p1.exe
There you go.
Or, use rhide :)
-Mike
- Raw text -