[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42115] image package: imadjust does not suppo
From: |
Hartmut |
Subject: |
[Octave-bug-tracker] [bug #42115] image package: imadjust does not support integers |
Date: |
Thu, 19 Nov 2015 19:41:03 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 |
Follow-up Comment #9, bug #42115 (project octave):
(I am NOT sure if this is a bug at all...)
I tried to do it the lazy way, and wanted to simply compile the new file
intlut.cc from inside a normal Octave 4.0 (release) installation (in Ubuntu
14.04, compiling oct files normally works).
But when I call "mkoctfile intlut.cc", then I get the following lengthy error
message:
intlut.cc: In function ‘T intlut(const T&, const T&)’:
intlut.cc:45:15: error: ISO C++ forbids declaration of ‘A_vec’ with no
type [-fpermissive]
const auto* A_vec = A.fortran_vec ();
^
intlut.cc:46:15: error: ISO C++ forbids declaration of ‘lut_vec’ with no
type [-fpermissive]
const auto* lut_vec = lut.fortran_vec ();
^
intlut.cc:49:9: error: ISO C++ forbids declaration of ‘B_vec’ with no type
[-fpermissive]
auto* B_vec = B.fortran_vec ();
^
intlut.cc: In instantiation of ‘T intlut(const T&, const T&) [with T =
intNDArray<octave_int<unsigned char> >]’:
intlut.cc:123:3: required from here
intlut.cc:45:38: error: cannot convert ‘const octave_int<unsigned char>*’
to ‘const int*’ in initialization
const auto* A_vec = A.fortran_vec ();
^
intlut.cc:46:42: error: cannot convert ‘const octave_int<unsigned char>*’
to ‘const int*’ in initialization
const auto* lut_vec = lut.fortran_vec ();
^
intlut.cc:49:32: error: cannot convert ‘octave_int<unsigned char>*’ to
‘int*’ in initialization
auto* B_vec = B.fortran_vec ();
^
intlut.cc:55:69: error: no matching function for call to
‘intlut_index(P_val_type, const int*&)’
*B_vec = intlut_index (static_cast<P_val_type> (*A_vec), lut_vec);
^
intlut.cc:55:69: note: candidate is:
intlut.cc:28:1: note: template<class P> P intlut_index(typename P::val_type,
const P*)
intlut_index (const typename P::val_type A, const P lut_vec[])
^
intlut.cc:28:1: note: template argument deduction/substitution failed:
intlut.cc: In substitution of ‘template<class P> P intlut_index(typename
P::val_type, const P*) [with P = int]’:
intlut.cc:55:69: required from ‘T intlut(const T&, const T&) [with T =
intNDArray<octave_int<unsigned char> >]’
intlut.cc:123:3: required from here
intlut.cc:28:1: error: ‘int’ is not a class, struct, or union type
intlut.cc: In instantiation of ‘T intlut(const T&, const T&) [with T =
intNDArray<octave_int<short unsigned int> >]’:
intlut.cc:124:8: required from here
intlut.cc:45:38: error: cannot convert ‘const octave_int<short unsigned
int>*’ to ‘const int*’ in initialization
const auto* A_vec = A.fortran_vec ();
^
intlut.cc:46:42: error: cannot convert ‘const octave_int<short unsigned
int>*’ to ‘const int*’ in initialization
const auto* lut_vec = lut.fortran_vec ();
^
intlut.cc:49:32: error: cannot convert ‘octave_int<short unsigned int>*’
to ‘int*’ in initialization
auto* B_vec = B.fortran_vec ();
^
intlut.cc:55:69: error: no matching function for call to
‘intlut_index(P_val_type, const int*&)’
*B_vec = intlut_index (static_cast<P_val_type> (*A_vec), lut_vec);
^
intlut.cc:55:69: note: candidate is:
intlut.cc:28:1: note: template<class P> P intlut_index(typename P::val_type,
const P*)
intlut_index (const typename P::val_type A, const P lut_vec[])
^
intlut.cc:28:1: note: template argument deduction/substitution failed:
intlut.cc: In substitution of ‘template<class P> P intlut_index(typename
P::val_type, const P*) [with P = int]’:
intlut.cc:55:69: required from ‘T intlut(const T&, const T&) [with T =
intNDArray<octave_int<short unsigned int> >]’
intlut.cc:124:8: required from here
intlut.cc:28:1: error: ‘int’ is not a class, struct, or union type
intlut.cc: In instantiation of ‘T intlut(const T&, const T&) [with T =
intNDArray<octave_int<short int> >]’:
intlut.cc:125:8: required from here
intlut.cc:45:38: error: cannot convert ‘const octave_int<short int>*’ to
‘const int*’ in initialization
const auto* A_vec = A.fortran_vec ();
^
intlut.cc:46:42: error: cannot convert ‘const octave_int<short int>*’ to
‘const int*’ in initialization
const auto* lut_vec = lut.fortran_vec ();
^
intlut.cc:49:32: error: cannot convert ‘octave_int<short int>*’ to
‘int*’ in initialization
auto* B_vec = B.fortran_vec ();
^
intlut.cc:55:69: error: no matching function for call to
‘intlut_index(P_val_type, const int*&)’
*B_vec = intlut_index (static_cast<P_val_type> (*A_vec), lut_vec);
^
intlut.cc:55:69: note: candidate is:
intlut.cc:28:1: note: template<class P> P intlut_index(typename P::val_type,
const P*)
intlut_index (const typename P::val_type A, const P lut_vec[])
^
intlut.cc:28:1: note: template argument deduction/substitution failed:
intlut.cc: In substitution of ‘template<class P> P intlut_index(typename
P::val_type, const P*) [with P = int]’:
intlut.cc:55:69: required from ‘T intlut(const T&, const T&) [with T =
intNDArray<octave_int<short int> >]’
intlut.cc:125:8: required from here
intlut.cc:28:1: error: ‘int’ is not a class, struct, or union type
warning: mkoctfile exited with failure status
warning: called from
mkoctfile at line 171 column 5
Is this a problem? Or would I need to compile the whole image repository in
order to test this single new file intlut.cc?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42115>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/