help-octave
[Top][All Lists]
Advanced

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

Where to place .oct files


From: LUK ShunTim
Subject: Where to place .oct files
Date: Fri, 17 Apr 2009 14:53:51 +0800
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

Hi,

I just used mkoctfile to compile this HelloWorld.cc example

#include <octave/oct.h>
DEFUN_DLD (helloworld, args, nargout, "Hello World Help String")
{
       int nargin = args.length ();
       octave_stdout << "Hello World has " << nargin
             << " input arguments and "
             << nargout << " output arguments.\n";
       return octave_value_list ();
}

It compiled fine but running it I got an "undefined symbol:" error.

octave:1> HelloWorld
error: /home/0/00work/octave/mkoct/helloworld/HelloWorld.oct: undefined
symbol: _ZN3MPI3Win4FreeEv
octave:1> ls ./
HelloWorld.cc  HelloWorld.o  HelloWorld.oct

It seems the octave libraries libcruft.so, liboctave.so, liboctinterp.so
cannot be found.

$ ldd HelloWorld.oct

        linux-vdso.so.1 =>  (0x00007fff029fe000)
        liboctinterp.so => not found
        liboctave.so => not found
        libcruft.so => not found
        liblapack.so.3gf => /usr/lib/atlas/liblapack.so.3gf (0x00007f98f9b2f000)
        ...

Adding the path (which is /usr/lib/octave-3.0.5) to the search path
didn't seem to help.

What have I missed? Or the .oct files have to be put in a particular
place so that octave can find them? I'm using octave 3.0.5,
debian/sid/amd64.

Thanks in advance,
ST
--


reply via email to

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