help-octave
[Top][All Lists]
Advanced

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

Re: Octave and linux


From: Joao Cardoso
Subject: Re: Octave and linux
Date: Wed, 16 Jun 1999 19:14:53 +0100

Antonino Casile wrote:
> 
> Hi all,
> I am trying to compile a C++ program using the octave libraries but
> I get the following errors when I lin the program :
> 
> /usr/lib/octave/liboctave.so: undefined reference to `d1mach_'
> /usr/lib/octave/liboctave.so: undefined reference to `cffti_'
> /usr/lib/octave/liboctave.so: undefined reference to `xdlange_'
> /usr/lib/octave/liboctave.so: undefined reference to `dgemv_'
> /usr/lib/octave/liboctave.so: undefined reference to `write_history'
> /usr/lib/octave/liboctave.so: undefined reference to `dgebak_'
> /usr/lib/octave/liboctave.so: undefined reference to `rjbesl_'
> /usr/lib/octave/liboctave.so: undefined reference to `dorgqr_'
> /usr/lib/octave/liboctave.so: undefined reference to `cfftf_'
> /usr/lib/octave/liboctave.so: undefined reference to `stifle_history'
> /usr/lib/octave/liboctave.so: undefined reference to `zgebak_'
> /usr/lib/octave/liboctave.so: undefined reference to `rkbesl_'
> /usr/lib/octave/liboctave.so: undefined reference to `dgeqrf_
>  ..... and so on .....
> 
> the program is :
> ---------------------------------------------------------------
> #include <iostream.h>
> #include <octave/Array.h>
> 
> void main(void)
> {
>         Array<int> prova(10);
> 
>         cout<<"Prova di scrittura ...."<<endl;
> }
> ----------------------------------------------------------------
> 
> The compile line is :
> g++ tryoctave.cpp -I/usr/include/octave -L/usr/lib/octave -loctave -o
> tryoctave

You are missing the cruft library, libcruft.
Try doing `mkoctfile -v ...' to see what the correct libraries are on
your system, or edit mkoctfile (usualy in /usr/local/bin) to inspect it.

> 
> I have :
> RedHat6.0
> egcs-2.91.66
> Octave, version 2.0.13 (i386-redhat-linux-gnu)
> 
> I installed octave using the rpm file given with RedHat6.0
> 
> Any help is greatly appreciated.
>                         Antonino Casile
> 
> ---------------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.  To ensure
> that development continues, see www.che.wisc.edu/octave/giftform.html
> Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
> ---------------------------------------------------------------------

-- 
Joao Cardoso                |   e-mail: address@hidden
INESC, R. Jose Falcao 110   |   tel:    + 351 2 2094322
4050 Porto, Portugal        |   fax:    + 351 2 2008487



---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------



reply via email to

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