help-octave
[Top][All Lists]
Advanced

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

liboctave questions


From: Andrew Smallbone
Subject: liboctave questions
Date: Thu, 18 Jan 1996 19:15:46 GMT

>>>>> "jwe" == "John W Eaton" <address@hidden> writes:

jwe> : 1.       Although the Array is a templated class arrays of floats don't
jwe> : seem to work (the resize() method doesn't exist).  Should Arrays be
jwe> : able to work with other types?
jwe> Yes.

The following program:
-------
#include "Array.h"
main(int argc, char *argv[])
{
  Array<float> a(10);
}
-------
compiled with ``gcc -o test test.cc -loctave -lcruft -lf2c -lg++ -lm''
produces:
Undefined                       first referenced
 symbol                             in file
_._t5Array1Zf                       stats.o
__t5Array1ZfiRCf                    stats.o


The above works fine with ``Array<double>'' but fails for every other
type.   Does this mean I've messed up compilation of the library? (I'm
using gcc 2.6.3 - Solaris 5.4)

Thanks
Andrew

-- 
_______________________________________________________
       Andrew Smallbone <address@hidden>
London  Para||el  Applications  Centre +44 171 975 5168
---A5 AC A7 5E A2 10 81 18  09 F5 DB 6C 12 A9 07 A5---


reply via email to

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