Mail Archives: djgpp/1998/11/23/20:06:07
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 -