[Top][All Lists]

[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 (X11/20090103)


I just used mkoctfile to compile this 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.o  HelloWorld.oct

It seems the octave libraries,,
cannot be found.

$ ldd HelloWorld.oct =>  (0x00007fff029fe000) => not found => not found => not found => /usr/lib/atlas/ (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,

Thanks in advance,

reply via email to

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