Hi Elias,

thanks, complex numbers seem to be not very portable between compilers.
Hopefully fixed in SVN 495 along with the other errors.

/// Jürgen


On 10/20/2014 04:48 PM, Elias Mårtenson wrote:
After working around the previous error, I'm getting the following:

g++ -DHAVE_CONFIG_H -I. -I..     -rdynamic   -g -O2 -MT LvalCell.o -MD -MP -MF $depbase.Tpo -c -o LvalCell.o LvalCell.cc &&\
mv -f $depbase.Tpo $depbase.Po
clang: warning: argument unused during compilation: '-rdynamic'
In file included from LApack.cc:32:
./LApack.hh:97:52: error: _expression_ is not assignable
   static void set_real(ZZ & y, DD x)   { y.real() = x; }
                                          ~~~~~~~~ ^
./LApack.hh:98:52: error: _expression_ is not assignable
   static void set_imag(ZZ & y, DD x)   { y.imag() = x; }
                                          ~~~~~~~~ ^
./LApack.hh:101:47: error: _expression_ is not assignable
   static void conjugate(ZZ & z)   { z.imag() = - z.imag(); }
                                     ~~~~~~~~ ^
LApack.cc:50:19: error: variable length array of non-POD element type 'ZZ'
      (aka 'complex<double>')
              ZZ a[rows];
                  ^
LApack.cc:56:19: error: variable length array of non-POD element type 'ZZ'
      (aka 'complex<double>')
              ZZ b[B->element_count()];
                  ^
In file included from LApack.cc:32:
./LApack.hh:1049:1: error: variable length array of non-POD element type
      'std::__1::complex<double>'
DynArray(T, tau, N);
^
./APL_types.hh:459:46: note: expanded from macro 'DynArray'
# define DynArray(Type, Name, Size) Type Name[Size];
                                             ^
./LApack.hh:1132:23: note: in instantiation of function template specialization
      'scaled_gelsy<std::__1::complex<double> >' requested here
     const int RANK = scaled_gelsy(A, B, rcond);
                      ^
LApack.cc:70:38: note: in instantiation of function template specialization
      'gelsy<std::__1::complex<double> >' requested here
                const ShapeItem rk = gelsy<ZZ>(B, A, rcond);
                                     ^
6 errors generated.

Regards,
Elias

Reply via email to