help-octave
[Top][All Lists]
Advanced

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

Re: octave-fixed compile error


From: Daniel Bartel
Subject: Re: octave-fixed compile error
Date: Mon, 27 Jun 2016 22:10:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0

The unstripped output of the compiler is

Compiling fixedCMatrix.o
mkoctfile -DHAVE_OCTAVE_40 -v  -DOCTAVE_FORGE   -c fixedCMatrix.cc
g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
-I/usr/include/octave-4.0.0/octave/.. -I/usr/include/octave-4.0.0/octave
-I/usr/include/hdf5/serial -I/usr/include/mpi -pthread -fopenmp -g -O2
-fstack-protector-strong -Wformat -Werror=format-security
-DHAVE_OCTAVE_40 -DOCTAVE_FORGE fixedCMatrix.cc -o fixedCMatrix.o
In file included from
/usr/include/octave-4.0.0/octave/../octave/lo-utils.h:34:0,
                 from fixedCMatrix.cc:30:
/usr/include/octave-4.0.0/octave/../octave/oct-cmplx.h: In instantiation
of ‘bool operator<(const std::complex<_Tp>&, const std::complex<_Tp>&)
[with T = FixedPoint]’:
/usr/include/octave-4.0.0/octave/../octave/mx-inlines.cc:111:1:
required from ‘void mx_inline_lt(size_t, bool*, const X*, Y) [with X =
FixedPointComplex; Y = FixedPointComplex; size_t = long unsigned int]’
fixedCMatrix.cc:1776:1:   required from here
/usr/include/octave-4.0.0/octave/../octave/oct-cmplx.h:49:10: error: no
match for ‘operator==’ (operand types are ‘const volatile FixedPoint’
and ‘const volatile FixedPoint’)
   if (ax == bx) \
          ^
/usr/include/octave-4.0.0/octave/../octave/oct-cmplx.h:99:1: note: in
expansion of macro ‘DEF_COMPLEXR_COMP’
 DEF_COMPLEXR_COMP (<, <)
 ^


On 2016-06-27 20:53, danius wrote:
> Hi!
> 
> I decided to put some effort into the unmaintained package octave-fixed. The
> goal would be to make it workable again. Since I have not worked with the
> Octave API up to now, this may take some time.
> 
> I have already cloned the repo from http://hg.code.sf.net/p/octave/fixed and
> looked through the source code.
> The first compile error I am struggling with is:
> 
> 
> 
> The strange thing is that fixedMatrix.cc is compiling, but fixedCMatrix.cc
> is not compiling. I guess that there was an API change with respect to
> complex numbers, but I could not find it so far.
> If somebody has an hint for me, where to look, I would be really happy :-).
> 
> Thx.
> 
> 
> 
> 
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/octave-fixed-compile-error-tp4678025.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave
> 



reply via email to

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