Skip to content

compilation error related to itpp #37

@gariac

Description

@gariac

I'm not a programmer but this error reads like a type definition error.

make
[ 5%] Building CXX object src/CMakeFiles/LTE_MISC.dir/capbuf.cpp.o
In file included from /usr/local/src/LTE-Cell-Scanner/src/capbuf.cpp:29:
/usr/local/src/LTE-Cell-Scanner/include/dsp.h: In function ‘itpp::cvec fshift(const cvec&, double, double)’:
/usr/local/src/LTE-Cell-Scanner/include/dsp.h:47:15: error: lvalue required as left operand of assignment
47 | coeff.real()=cos(kt);
| ~~~~~~~~~~^~
/usr/local/src/LTE-Cell-Scanner/include/dsp.h:48:15: error: lvalue required as left operand of assignment
48 | coeff.imag()=sin(k
t);
| ~~~~~~~~~~^~
/usr/local/src/LTE-Cell-Scanner/include/dsp.h: In function ‘void fshift_inplace(itpp::cvec&, double, double)’:
/usr/local/src/LTE-Cell-Scanner/include/dsp.h:64:15: error: lvalue required as left operand of assignment
64 | coeff.real()=cos(kt);
| ~~~~~~~~~~^~
/usr/local/src/LTE-Cell-Scanner/include/dsp.h:65:15: error: lvalue required as left operand of assignment
65 | coeff.imag()=sin(k
t);
| ~~~~~~~~~~^~
make[2]: *** [src/CMakeFiles/LTE_MISC.dir/build.make:80: src/CMakeFiles/LTE_MISC.dir/capbuf.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:218: src/CMakeFiles/LTE_MISC.dir/all] Error 2
make: *** [Makefile:158: all] Error 2
sh-4.4#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions