[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
help with embedded octave
From: |
Clarke, Trevor |
Subject: |
help with embedded octave |
Date: |
Fri, 30 Jan 2009 10:19:51 -0500 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm trying to embed octave in an application and I'm having problems
with the paths. When I run octave.exe I get access to all the
octave-forge commands, etc and pathdef() returns a reasonable list of
paths. When I run the embedded interpreter I don't have access to any
external commands (including pkg). In the interpreter, path contains
only "." and a path I manually added with addpath(). pathdef() is empty.
I'm running 3.0.1 on Windows XP (not 3.0.3 as it's compiled with VS2008
and I'm using 2005). I'm starting the interpreter with:
std::cout.rdbuf(mOut.rdbuf()); // redirect stdout
const char* argv[1] = {"foo"}; // octave_main expects at least a command
name..doesn't check for NULL
octave_main(1, (char**)argv, 1);
How do I get the behavior of the octave interpreter with regards to
pathdef?
- ------------------------------
Trevor R.H. Clarke
Ball Aerospace & Technologies Corp
Opticks, Free Your Imagery (http://opticks.ballforge.net
GPG key available on random.sks.keyserver.penguin.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
iD8DBQFJgxqX+xUTKUxH/LkRAovrAKCQSf2CsmUp28hWG02kP1ZRodmf5QCfS188
EfHxWQi6iDbSjCBMsnPoJg8=
=RNMs
-----END PGP SIGNATURE-----
This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- help with embedded octave,
Clarke, Trevor <=