Hi,
I tried compiling the latest svn version of ALPS (7708) last night and I got the following compile error:
*/alps/applications/dmrg/dmrg/dmtk/system.h:594:48: error: lvalue required as unary ‘&’ operand s.write((const char *)&_target_weight[i], sizeof(double));* I looked it up and sounds like this line of code was written back in 2006. So that can be a compiler issue but I didn't find anything that I could relate to the problem online.
I am using gcc 6.1.1.
Bests,
Amir
Hi again,
I figured it out that the problem is caused by the compiler because the code compiles fine with GCC 5.4. The error could be due to new standards of GCC version 6.
Amir
On Tue, Jun 7, 2016 at 2:36 PM, Amir M.Aghaei amir.maghaei@gmail.com wrote:
Hi,
I tried compiling the latest svn version of ALPS (7708) last night and I got the following compile error:
*/alps/applications/dmrg/dmrg/dmtk/system.h:594:48: error: lvalue required as unary ‘&’ operand s.write((const char *)&_target_weight[i], sizeof(double));* I looked it up and sounds like this line of code was written back in 2006. So that can be a compiler issue but I didn't find anything that I could relate to the problem online.
I am using gcc 6.1.1.
Bests,
Amir
comp-phys-alps-users@lists.phys.ethz.ch