Re: Call a external program from a program



On Mon, 08 Jun 2009 19:19:43 -0500, Luis Horszowski wrote:

I have run into this problem before. I never understood the reason,
however a solution which always works independent of the order of
compilation is "KRAFT" OBJ\->

The OBJ\-> or STR\-> command, with a string as its argument,
in fact "compiles" the string at that late time,
while you are running whatever program contains those commands.

So if by that time 'KRAFT' is a variable in the current or higher directory,
then that variable will be evaluated; otherwise if KRAFT is a command
in an attached library, that library command will be performed.
If neither, then 'KRAFT' will still be left on the stack.

Performing object-time compilation every time is slower than just editing
the calling program once, however, so unless you are specially providing for
calling something which metamorphoses back and forth between
being stored in a variable vs. in a library,
it may pay to just edit the calling program once,
after the called program or command has been installed,
which is sufficiently late enough.

[r->] [OFF]
.



Relevant Pages

  • Stdin.readIn ( ) console window
    ... Hello I got a source code that compiles fine. ... not with textPad but in textPad using the command compile java. ...
    (comp.lang.java.help)
  • Linker problem with DirectShow
    ... The project compiles fine, but when ... other libs; use /NODEFAULTLIB:library ... Creating temporary file ... Creating command line "cl.exe ...
    (microsoft.public.win32.programmer.directx.video)
  • Linker problem with DirectShow
    ... The project compiles fine, but when ... other libs; use /NODEFAULTLIB:library ... Creating temporary file ... Creating command line "cl.exe ...
    (microsoft.public.multimedia.directx.dshow.programming)
  • Re: 1987 Z80 C compiler 2500ad documentation
    ... compiles and runs with gcc 4, ... information about pref-defined preprocessor symbols. ... Here are the command line options: ... -S Create assembler output with source code as comments ...
    (comp.arch.embedded)
  • Run a commandline program and get return
    ... I need to run a program from a command from within a Visual C++ program. ... need the calling program to wait for the second program to complete and ... Any guidance will most appreciated. ...
    (microsoft.public.vc.language)