delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/21/15:31:18

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: help newbie please
Date: Fri, 21 Aug 1998 15:21:28 -0300
Organization: NBTel Internet
Lines: 23
Message-ID: <35DDBAA7.1313B7D8@unb.ca>
References: <6r3ga5$k9c$1 AT heliodor DOT xara DOT net> <35DBBCB8 DOT 4615C448 AT admiral DOT umsl DOT edu>
NNTP-Posting-Host: fctnts11c17.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

M Joshua Ryan wrote:

> Are you working in dos-mode, a window, a shortcut, a batch file?  The problem
> sounds like gcc cannot find your test.c file because it's not in the current
> directory or not in the search path. (I've tried numerous times,
> unsuccessfully, to put &compile into the context menu of my .c files).

    All you need to do is make a program that takes as a parameter a filename
(path included) and parses it, then changes the the directory to where file is
located.  Then make a batch file, 'Compile.bat' or something, and have it call
your program, the gcc.  This will not help gcc find 'cpp' though.  That is
another problem with the PATH setup.  That probably means that 'C:\Djgpp\bin' is
not in the path, or the person doesn't have cpp.exe.

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca




- Raw text -


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