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> </div>  <div>Directory of C:\Cprograms</div>  <div>11/04/2007 01:50pm    <DIR>      .</div>  <div>11/04/2007 01:50pm    <DIR>     ..</div>  <div>11/04/2007 07:47pm                 111 samp.c</div>  <div>                 1 File(s)                 111 bytes</div>  <div>                 2 Dir(s)</div>  <div> </div>  <div>C:\Cprograms>gcc samp.c -o samp.exe</div>  <div>cc1.exe: error:  samp.c: No such file or directory <ENOENT></div>  <div> </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> </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 <csrabak AT yahoo DOT com DOT br></I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Daniel Oljaca escreveu:<BR>> Hi, thank you for responding. I just checked
 the file in my c:\programs, <BR>> the file is there and it appears to be a C file. I checked the <BR>> properties and all indications seem to say it was saved as samp.c. I <BR>> don't see an extra .txt appendage. I did create this file with notepad <BR>> but when I do a dir in ms dos it brings up samp.c. Like I said when I <BR>> try to compile it i get this message: cc1.exe: error. samp.c: No such <BR>> file or directory. I donot know what I am doing wrong. Any help would be <BR>> appreciated, thanks again,<BR>> <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>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> __________________________________________________<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 -