delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/23/20:06:07

Sender: nate AT cartsys DOT com
Message-ID: <365A0519.C052FDEC@cartsys.com>
Date: Mon, 23 Nov 1998 17:00:09 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: getting started
References: <73cifb$gqm$1 AT clam DOT niwa DOT cri DOT nz>
Reply-To: djgpp AT delorie DOT com

Richard Pett wrote:
> 
> I have just downloaded and started using djgpp and I have a few questions, I
> hope none of them seem to obvious, but I'm new to this so they might be.
> First of all, although I seem to be able to compile straight 'C' programs
> without problems, I am having trouble compiling C++ files.  When I run gcc,
> I get the following message 'cannot exec cc1plus...' I do have cc1plus.exe,
> it was unzipped to lib\gcc-lib\djgpp\2.81\  Is this where it is supposed to
> be?

Have you set the DJGPP environment variable?  If not, read README.1ST
and do so.  Otherwise, post your AUTOEXEC.BAT and the output of `SET'.
 
> My second question is completely unrelated, I am trying to write a front-end
> for a program but I do not know how to run one dos program from within my
> 'C' programs, nor how to pass parameters to them.  Can anyone help me here?

The `system' function is probably the easiest.  The `spawn*' family work
at a lower level and are more complicated and less portable.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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