Mail Archives: djgpp/1998/11/29/14:38:29
I don't know about your C++ woes. But as far as running another program I might
have an answer
I have not tested this in DJGPP, but in normal C you would use the system()
command.
It is in the stdlib.h file and would to use it just type the command with
arguments in between the parentheses on system. Also the command MUST have
quotes around it.
Don't know if this will work, but I hope it helps.
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?
>
> 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?
- Raw text -