Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8762

Re: LinkOpen problem

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: LinkOpen problem
Date 2012-02-27 11:44 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jifqb5$soe$1@smc.vnet.net> (permalink)

Show all headers | View raw


On 2/25/12 at 1:57 AM, christoph.lhotka@fundp.ac.be (Christoph
Lhotka) wrote:

>first try NotebookDirectory[] to see the path where Mathematica
>looks for the executable.

NotebookDirectory[] returns the directory the current notebook
resides if it has been saved. If you execute this command in a
fresh session in a notebook that has not been saved it will
return $Failed with an error message stating the notebook has
not been saved.

>Use SetDirectory[] to change to the directory where the .exe file is or
>copy the .exe file to the path given by NotebookDirectory[].

Assuming Mathlink uses the same search order as for loading
packages with Get or Needs, then the directories looked at will
be the current working directory which is what is returned by
Directory[] or the directories returned by $Path

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: LinkOpen problem Bill Rowe <readnews@sbcglobal.net> - 2012-02-27 11:44 +0000

csiph-web