MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Run[] and Mathlink

  • To: mathgroup at
  • Subject: [mg44080] Re: Run[] and Mathlink
  • From: "Christos Argyropoulos M.D." <argchris at>
  • Date: Wed, 22 Oct 2003 03:24:30 -0400 (EDT)
  • References: <bm0j27$po2$>
  • Sender: owner-wri-mathgroup at

There is a way to compile C++/Fortran programs under Windows so the pop-up
window does not show up.
Use the Open Watcom Compiler v1.1, and select Window Executable Mode when
building the project (and do not call Windows API functions ...)
I have used the trick to compile NetLib (mainly fortran) software and call
them transparently both from the Windows CommandLine
and by "double-clicking". I/O should be ok (at least files are written to
and read from the hard disk).
Caveat: have not tested it with MathLink (I am using MathCode for C++ code
generation from and to mathematica, which does not support Watcom at least
Open Watcome full graphical IDE available (for free, donate if you find it
useful) at
Btw it is the only free system (besides the Cygwin tools) that combines both
C++/Fortran compilers, linkers, debuggers for Windows Platforms.

Christos Argyropoulos
Athens Greece

----- Original Message ----- 
From: "John Smith" <j.s at>
To: mathgroup at
Subject: [mg44080] Run[] and Mathlink

> Hi,
> I would like to be able to run operating system commands on win2000
> the dos box popping up all the time. A quick scan through the archives
> shown that this is impossible with the current Mathematica implementation.
> However, the idea of using Mathlink to pass options to CreateProcess() in
> windows as opposed to system() has been suggested as a solution
> Since my knowledge of programming outside mathematica is limited, has a
> member of the group ever programmed this?
> If not, a brief suggestion as to how to at least start programming such a
> function, preferably in C, would be grateful.
> Many thanks,
> James Jones
> ========================================
> Accelerator Physicist
> Accelerator Physics Group
> Daresbury Laboratory
> Warrington,
> Cheshire
> WA4 4AD
> UK
> .

  • Prev by Date: New version, old bugs
  • Next by Date: Re: Re: Re: recode procedural algorithm to faster functional module
  • Previous by thread: Re: Run[] and Mathlink
  • Next by thread: Graphics3D Edgeless Polygons