Re: Run and Mathlink
- To: mathgroup at smc.vnet.net
- Subject: [mg44080] Re: Run and Mathlink
- From: "Christos Argyropoulos M.D." <argchris at otenet.gr>
- Date: Wed, 22 Oct 2003 03:24:30 -0400 (EDT)
- References: <firstname.lastname@example.org>
- Sender: owner-wri-mathgroup at wolfram.com
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 http://www.openwatcom.org/.
Btw it is the only free system (besides the Cygwin tools) that combines both
C++/Fortran compilers, linkers, debuggers for Windows Platforms.
----- Original Message -----
From: "John Smith" <j.s at bt.com>
To: mathgroup at smc.vnet.net
Subject: [mg44080] Run and Mathlink
> 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
> WA4 4AD
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