delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/11/04/22:02:32

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=s1024; d=yahoo.com;
h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
b=x7qa1/jtukRZ1jtN/q8vJ4pR9EH9Srjt4IO3sRPXd/GKbg4nS7lXU9Vbbf6AnZb6ZiZYT9mhAYAwdadwyF/o1oHBwvwU3bf3g+/Jp1NPy8hxOY/8sRRTQBi8vUSLmVA2gFQTyXeg3WAzeczvCmuZ5s10P4f7S2no0cuNW0qa6Rk=;
X-YMail-OSG: pW2NRdYVM1neOpN5tuNPC6pQwIJ4qFJtYkg1HBMSvu9kPTQKKIierjrzkgPye5SNaARr9abDHflBQWrvsTiBQ6eysFY0I9HLabV60x0BTfz6Koonl4Q-
Date: Sun, 4 Nov 2007 19:01:57 -0800 (PST)
From: Daniel Oljaca <danoljaca AT yahoo DOT com>
Subject: Re: gcc problem , need help with djgpp
To: djgpp AT delorie DOT com
In-Reply-To: <fglqqp$usr$1@aioe.org>
MIME-Version: 1.0
Message-ID: <229326.67310.qm@web30005.mail.mud.yahoo.com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--0-127891510-1194231717=:67310
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi, thanks again for the reply. Here is what I have so far
   
  Directory of C:\Cprograms
  11/04/2007 01:50pm    <DIR>      .
  11/04/2007 01:50pm    <DIR>     ..
  11/04/2007 07:47pm                 111 samp.c
                   1 File(s)                 111 bytes
                   2 Dir(s)
   
  C:\Cprograms>gcc samp.c -o samp.exe
  cc1.exe: error:  samp.c: No such file or directory <ENOENT>
   
  For some reason gcc doesn't work in C:\Cprograms, but I copied samp.c into C:\djgpp\bin and then I ran gcc samp.c -o samp.exe and it compiled! I ran the samp.exe in that directory and it worke, it printed "This is the output of my first program!"
   
  So I think the problem I am having is with the path to gcc. I checked in control pannel\system\Environmental variables. I have an entry in System variables that says Path C:\djgpp\bin. There is also a user variables section on top of system variables but there is no path in that area. So I'm wondering if My Path setting is correct. I am not sure what is wrong with the current path setting. Is there anyway I can double check that, or a different way to set the path?

Cesar Rabak <csrabak AT yahoo DOT com DOT br> wrote:
  Daniel Oljaca escreveu:
> Hi, thank you for responding. I just checked the file in my c:\programs, 
> the file is there and it appears to be a C file. I checked the 
> properties and all indications seem to say it was saved as samp.c. I 
> don't see an extra .txt appendage. I did create this file with notepad 
> but when I do a dir in ms dos it brings up samp.c. Like I said when I 
> try to compile it i get this message: cc1.exe: error. samp.c: No such 
> file or directory. I donot know what I am doing wrong. Any help would be 
> appreciated, thanks again,
> 
Dan,

I can "reproduce" the behaviour of yours not having a file named samp.c 
in the directory:

E:\users\csrabak\Work>gcc samp.c -o samp.exe
gcc.exe: samp.c: No such file or directory (ENOENT)
gcc.exe: no input files

Could you please copy and paste the _exact_ messages gcc puts out?

Also, could you please post the result of a dir in c:\[c]programs 
directory (or the directory from where you did try to compile?




 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--0-127891510-1194231717=:67310
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<div>Hi, thanks again for the reply. Here is what I have so far</div>  <div>&nbsp;</div>  <div>Directory of C:\Cprograms</div>  <div>11/04/2007 01:50pm&nbsp;&nbsp;&nbsp; &lt;DIR&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .</div>  <div>11/04/2007 01:50pm&nbsp;&nbsp;&nbsp;&nbsp;&lt;DIR&gt;&nbsp;&nbsp;&nbsp;&nbsp; ..</div>  <div>11/04/2007 07:47pm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 111 samp.c</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 File(s)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 111 bytes</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 Dir(s)</div>  <div>&nbsp;</div>  <div>C:\Cprograms&gt;gcc samp.c -o samp.exe</div>  <div>cc1.exe: error:&nbsp; samp.c: No such file or directory &lt;ENOENT&gt;</div>  <div>&nbsp;</div>  <div>For some reason
 gcc doesn't work in C:\Cprograms, but I copied samp.c into C:\djgpp\bin and then I ran gcc samp.c -o samp.exe and it compiled! I ran the samp.exe in that directory and it worke, it printed "This is the output of my first program!"</div>  <div>&nbsp;</div>  <div>So I think the problem I am having is with the path to gcc. I checked in control pannel\system\Environmental variables. I have an entry in System variables that says Path C:\djgpp\bin. There is also a user variables section on top of system variables but there is no path in that area. So I'm wondering if My Path setting is correct. I am not sure what is wrong with the current path setting. Is there anyway I can double check that, or a different way to set the path?<BR><BR><B><I>Cesar Rabak &lt;csrabak AT yahoo DOT com DOT br&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Daniel Oljaca escreveu:<BR>&gt; Hi, thank you for responding. I just checked
 the file in my c:\programs, <BR>&gt; the file is there and it appears to be a C file. I checked the <BR>&gt; properties and all indications seem to say it was saved as samp.c. I <BR>&gt; don't see an extra .txt appendage. I did create this file with notepad <BR>&gt; but when I do a dir in ms dos it brings up samp.c. Like I said when I <BR>&gt; try to compile it i get this message: cc1.exe: error. samp.c: No such <BR>&gt; file or directory. I donot know what I am doing wrong. Any help would be <BR>&gt; appreciated, thanks again,<BR>&gt; <BR>Dan,<BR><BR>I can "reproduce" the behaviour of yours not having a file named samp.c <BR>in the directory:<BR><BR>E:\users\csrabak\Work&gt;gcc samp.c -o samp.exe<BR>gcc.exe: samp.c: No such file or directory (ENOENT)<BR>gcc.exe: no input files<BR><BR>Could you please copy and paste the _exact_ messages gcc puts out?<BR><BR>Also, could you please post the result of a dir in c:\[c]programs <BR>directory (or the directory from where you did
 try to compile?<BR><BR><BR></BLOCKQUOTE><BR><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com 
--0-127891510-1194231717=:67310--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019