help-octave
[Top][All Lists]
Advanced

[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 >> stand.cc
#include <octave/oct.h>
main(){ ColumnVector dx (3); }
^D

cc -c stand.cc -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
./a.out
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:  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]