Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile with "lvalue required as left operand of assignment" #2

Open
petwri opened this issue Nov 16, 2019 · 1 comment
Open

Comments

@petwri
Copy link

petwri commented Nov 16, 2019

During compiling, I get the following error (Makefile in ./blas/):

lapack_routines.cpp: In function ‘int tridiag(BoostTypedefs::Complex*, int, BoostTypedefs::Complex*, double*, char)’: lapack_routines.cpp:471:60: error: lvalue required as left operand of assignment for(uint i = 0;i<length_diag;i++){diag[i].real() = ndiag[i];diag[i].imag()=0.0;}

Those messages appear multiple times.

I tried different versions of gcc (6, 8), error occurs for all.

@petwri
Copy link
Author

petwri commented Nov 16, 2019

Can be closed.
Apparently C++98 standard is applicable here. Compling with g++ --std=gnu++98 works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant