help-octave
[Top][All Lists]
Advanced

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

octavelib in standalone program


From: John W. Eaton
Subject: octavelib in standalone program
Date: Sat, 25 Sep 1999 22:57:59 -0500 (CDT)

On 16-Sep-1999, Erich Schneider <address@hidden> wrote:

| I'm trying to use the octave libraries in my own standalone project on
| a SGI O2. I've already compiled octave 2.0.14 with --enable-shared
| under gcc 2.8.1 and it is running. Creating oct-files with mkoctfile is
| working, too.
| 
| For a start I just wanted to compile this simple program:
| 
| #include <octave/oct.h>
| main()
| {
|   Matrix m(1,1,1.0 );
| }
| 
| When linking I get an enourmous amount of warnings like these:
| 
| c++ -Wall -L/usr/lib/mips2 -L/usr/lib -L/usr/lib32 -L/usr/freeware/lib
| -L/usr/freeware/lib/gcc-lib/mips-sgi-irix6.3/2.8.1 -loctinterp -loctave
|  -lcruft -lcurses -ldl -lsocket -lsun -lm -o project project.o
| ...
| ld: WARNING 85: definition of putback__7istreamc in
| /usr/lib32/liboctinterp.so preempts that definition in
| /usr/lib32/liboctave.so.
| ld: WARNING 85: definition of gcount__7istream in
| /usr/lib32/liboctinterp.so preempts that definition in
| /usr/lib32/liboctave.so.

You should not need -loctinterp.

| Finally, the linker stops with 2 errors:
| 
| ld: ERROR 33: Unresolved text symbol "__t5Array1ZdiRCd" -- 1st
| referenced by project.o.
| ld: ERROR 33: Unresolved text symbol "_$_t5Array1Zd" -- 1st referenced
| by project.o.
| 
| Has anybody done some similar work? Any help would be appreciated.

It is easier to do this if you are not using shared libraries.  The
problem is that there are modules in liboctave that depend on the
readline and kpathsearch libraries, but the versions used by Octave
are not installed by default.

I'd like to resolve this problem and make it easier to use liboctave
separately from Octave, but it is a relatively low priority project
for me.  Would anyone like to help?  If so, please contact me.

Thanks,

jwe



---------------------------------------------------------------------
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]