octave-maintainers
[Top][All Lists]
Advanced

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

no matching function for call to 'Array<std::complex<double> >::Array(oc


From: PhilipNienhuis
Subject: no matching function for call to 'Array<std::complex<double> >::Array(octave_idx_type&, int)'
Date: Fri, 21 Nov 2014 04:06:12 -0800 (PST)

On my system, changeset 5b263e517c95 "Remove liboctave methods and classes
deprecated for longer than 3 years." (by Carnë) gives rise to a long series
of related to (AFAICS) complex double stuff:

===================================
:
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../octave-dev/liboctave -I..
-I../../octave-dev/liboctave/array -I../../octave-dev/liboctave/cruft/misc
-Inumeric -I../../octave-dev/liboctave/numeric -Ioperators
-I../../octave-dev/liboctave/operators -I../../octave-dev/liboctave/system
-I../../octave-dev/liboctave/util -I../libgnu -I../../octave-dev/libgnu
-Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -g -O2 -pthread -MT
array/array_libarray_la-CRowVector.lo -MD -MP -MF
array/.deps/array_libarray_la-CRowVector.Tpo -c
../../octave-dev/liboctave/array/CRowVector.cc  -fPIC -DPIC -o
array/.libs/array_libarray_la-CRowVector.o
../../octave-dev/liboctave/array/CMatrix.cc: In member function
'ComplexMatrix ComplexMatrix::fourier() const':
../../octave-dev/liboctave/array/CMatrix.cc:1362:30: error: no matching
function for call to 'Array<std::complex&lt;double>
>::Array(octave_idx_type&, int)'
   Array<Complex> wsave (nn, 1);
                              ^
../../octave-dev/liboctave/array/CMatrix.cc:1362:30: note: candidates are:
In file included from ../../octave-dev/liboctave/array/Array-util.h:26:0,
                 from ../../octave-dev/liboctave/array/CMatrix.cc:38:
../../octave-dev/liboctave/array/Array.h:212:3: note: Array<T>::Array(const
Array<T>&) [with T = std::complex<double>]
   Array (const Array<T>& a)
   ^
../../octave-dev/liboctave/array/Array.h:212:3: note:   candidate expects 1
argument, 2 provided
../../octave-dev/liboctave/array/Array.h:205:3: note: template<class U>
Array<T>::Array(const Array<U>&)
   Array (const Array<U>& a)
   ^
../../octave-dev/liboctave/array/Array.h:205:3: note:   template argument
deduction/substitution failed:
../../octave-dev/liboctave/array/CMatrix.cc:1362:30: note:   mismatched
types 'const Array<T>' and 'octave_idx_type {aka int}'
:
:
many many more
:
======================================================

"hg update" to previous cs (346b20b2c2ff "Adapt genpropdoc.m.......") and
rebuilding gets me a working ./run-octave.


My system:
Mageia-4 64 bit (just recently installed)
configure w/o any special settings (esp. no --enable-64)
AFAICS the only missing dependency noted by ./configure was fftw3.

AFAIU it looks like either the deprecated methods and classes still did
serve some purpose, or the deprecation wasn't completely replaced by other
methods/classes.
Maybe bug #43646 is also related, but I read that the OP's errors were
related to QR while on my box I don't see QR mentioned in the error
messages.

Philip



--
View this message in context: 
http://octave.1599824.n4.nabble.com/no-matching-function-for-call-to-Array-std-complex-double-Array-octave-idx-type-int-tp4667408.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

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