[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using octave libraries
From: |
Edward S. Meadows |
Subject: |
Using octave libraries |
Date: |
Thu, 2 Nov 2000 17:59:39 -0700 (MST) |
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?
Thanks for any tips.
--
Edward S. Meadows address@hidden
Chemical & Materials Engineering Office: (780) 492-3181
University of Alberta Fax: (780) 492-2881
Edmonton, AB, Canada T6G 2G6 Cell: (780) 907-3537
Source file (testvec.cc):
#include <iostream.h>
#include <config.h>
#include <Matrix.h>
int main() {
int n=5;
ColumnVector a(n);
cout << a;
return 0;
}
Makefile:
INCL=/usr/include/octave/
LIB=/usr/lib/octave/
testvec: testvec.o
g++ -L$(LIB) -o testvec testvec.o -loctave -lcruft
testvec.o: testvec.cc
g++ -I$(INCL) -c -o testvec.o testvec.cc
Compilation results:
address@hidden cpp]$ make
g++ -I/usr/include/octave/ -c -o testvec.o testvec.cc
g++ -L/usr/lib/octave/ -o testvec testvec.o -loctave -lcruft
/usr/lib/octave//liboctave.so: undefined reference to `append_history'
/usr/lib/octave//libcruft.so: undefined reference to `do_lio'
/usr/lib/octave//libcruft.so: undefined reference to `e_wsle'
/usr/lib/octave//liboctave.so: undefined reference to `write_history'
/usr/lib/octave//liboctave.so: undefined reference to `stifle_history'
/usr/lib/octave//libcruft.so: undefined reference to `e_wsfe'
/usr/lib/octave//libcruft.so: undefined reference to `z_abs'
/usr/lib/octave//liboctave.so: undefined reference to `where_history'
/usr/lib/octave//liboctave.so: undefined reference to `kpathsea_debug'
/usr/lib/octave//liboctave.so: undefined reference to `history_get'
/usr/lib/octave//liboctave.so: undefined reference to `read_history'
/usr/lib/octave//liboctave.so: undefined reference to `using_history'
/usr/lib/octave//libcruft.so: undefined reference to `s_cmp'
/usr/lib/octave//liboctave.so: undefined reference to `history_list'
/usr/lib/octave//liboctave.so: undefined reference to `screenheight'
/usr/lib/octave//liboctave.so: undefined reference to `remove_history'
/usr/lib/octave//liboctave.so: undefined reference to `kpse_path_element'
/usr/lib/octave//liboctave.so: undefined reference to `kpse_all_path_search'
/usr/lib/octave//liboctave.so: undefined reference to `kpse_element_dirs'
/usr/lib/octave//liboctave.so: undefined reference to `read_history_range'
/usr/lib/octave//liboctave.so: undefined reference to `kpse_set_program_name'
/usr/lib/octave//libcruft.so: undefined reference to `i_indx'
/usr/lib/octave//liboctave.so: undefined reference to `replace_history_entry'
/usr/lib/octave//libcruft.so: undefined reference to `d_mod'
/usr/lib/octave//liboctave.so: undefined reference to `history_truncate_file'
/usr/lib/octave//liboctave.so: undefined reference to `add_history'
/usr/lib/octave//liboctave.so: undefined reference to `kpse_path_expand'
/usr/lib/octave//libcruft.so: undefined reference to `do_fio'
/usr/lib/octave//libcruft.so: undefined reference to `pow_dd'
/usr/lib/octave//libcruft.so: undefined reference to `z_sqrt'
/usr/lib/octave//libcruft.so: undefined reference to `e_wsfi'
/usr/lib/octave//libcruft.so: undefined reference to `s_cat'
/usr/lib/octave//libcruft.so: undefined reference to `s_stop'
/usr/lib/octave//liboctave.so: undefined reference to `screenwidth'
/usr/lib/octave//libcruft.so: undefined reference to `s_wsfi'
/usr/lib/octave//liboctave.so: undefined reference to `kpse_clear_dir_cache'
/usr/lib/octave//liboctave.so: undefined reference to `unstifle_history'
/usr/lib/octave//liboctave.so: undefined reference to `kpse_path_search'
/usr/lib/octave//libcruft.so: undefined reference to `d_lg10'
/usr/lib/octave//liboctave.so: undefined reference to `kpse_expand_default'
/usr/lib/octave//liboctave.so: undefined reference to `history_is_stifled'
/usr/lib/octave//libcruft.so: undefined reference to `s_wsle'
/usr/lib/octave//libcruft.so: undefined reference to `s_wsfe'
/usr/lib/octave//liboctave.so: undefined reference to `history_base'
/usr/lib/octave//libcruft.so: undefined reference to `s_copy'
collect2: ld returned 1 exit status
make: *** [testvec] Error 1
-------------------------------------------------------------
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
-------------------------------------------------------------
- Using octave libraries,
Edward S. Meadows <=