[Top][All Lists]

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

Re: Using octave libraries

From: Andy Adler
Subject: Re: Using octave libraries
Date: Thu, 2 Nov 2000 21:00:29 -0500 (EST)

ŠþOn Thu, 2 Nov 2000, Edward S. Meadows wrote:
> I'm trying to use the Matrix-Vector class libraries from
> octave.  My first attempt fails to link.  I'm evidently not
> linking to all the necessary libraries.  Can someone advise
> me as to where the missing references come from?
> I can guess that some of this comes from readline and some
> from kpathsea.  Is it really necessary to link to those to
> use the octave libraries? 

Here is my stand-alone recipe:

cat >>
#include <octave/oct.h>
main(){ ColumnVector dx (3); }

cc -c -I/usr/local/include/octave-2.1.31/octave/
cc stand.o -L/usr/local/lib/octave-2.1.31 -loctave -loctinterp ŠÜ
   -ldl -lcruft -lstdc++ -lg2c -ltermcap ŠÜ
   -L/usr/src/octave-2.1.31/kpathsea -lkpathsea ŠÜ
   -L/usr/src/octave-2.1.31/readline -lreadline

export LD_LIBRARY_PATH=/usr/local/lib/octave-2.1.31
strip ./a.out 
ls -l ./a.out 
-rwxrwxr-x    1 andy     andy       172896 Oct 16 22:44 ./a.out

As far as I know, you do need to link to 
kpathsea and readline.

Andy Adler,                address@hidden

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

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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