help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

oct-files are still undefined


From: John W. Eaton
Subject: oct-files are still undefined
Date: Thu, 3 Mar 2005 12:28:49 -0500

On  3-Mar-2005, address@hidden <address@hidden> wrote:

| I have installed some versions of octave and there's always the same
| problem:  
| I can build an oct-file with "$ mkoctfile name.cc" but if I want to use
| it  
| in octave with ">> name", there's the message "name undefined"! as
| .m-files are
| working. I have set the loadpath to all directorys (>> LOADPATH =
| "../..//").  
|   
| Now I have octave-2.1.66, configured with --enable-shared, but there's
| still  
| this problem. Is there a way to create oct-files octave can work with?  

Yes, it should work.  When you built Octave with --enable shared, you
should have created and installed some .oct files.  What is the result
of the command

  which min

in your copy of Octave?  If your copy of Octave is properly installed,
it should respond with

  min is the dynamically-linked function from the file
  /usr/lib/octave/2.1.66/oct/i386-pc-linux-gnu/min.oct

(though the exact directory name migth be slightly different).  If
Octave does respond with this message, then does the min function also
work?  If so, then dynamically loaded .oct files are working
correctly.

| My third question concerns gnuplot. I changed the path for  
| pgnuplot.exe in the file octaverc and it functioned with octave-2.1.49,
| but now  
| in the 2.1.66 there's even no error-message, and p.e. the command
| "sombrero(41)"  
| is accepted, but nothing happens.

Please provide some details.  Exactly what is in your .octaverc file?
Exactly where is pgnuplot installed?  Exactly where is the
corresponding gnuplot binary (the pgnuplot file is just a small
program that reads from stdin and sends commands to the real gnuplot
by some other method).

What happens if you type

  echo "plot sin(x); pause (5);" | pgnuplot

in a bash command window?  Does that work?

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]