6
Let’s say I want to do a routine to automate the process of compiling a program. In general (language independent), you call compiler from the command line. For example:
javac meuPrograma.class
or
gcc meuPrograma. c -o meuPrograma
In Windows, we can use system()
. But how to read the command line ? In the case of a compiler, for example, how to read the possible errors returned by the compiler on the command line. Better said, how do the Ides do it ? This would be important if we wanted to integrate any program with CLI interface to our system, not just for compilers.
The Dev-C++ IDE is a great example of this CLI integration. It makes use of standard utilities such as the
gcc
, thegdb
and themake
.– Lacobus