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 on Ubuntu 17.04 using libfftw 3.3.5-3 #11

Open
Ka-zam opened this issue Oct 2, 2017 · 1 comment
Open

Fails on Ubuntu 17.04 using libfftw 3.3.5-3 #11

Ka-zam opened this issue Oct 2, 2017 · 1 comment

Comments

@Ka-zam
Copy link

Ka-zam commented Oct 2, 2017

fft[i].real() = m_out[i][0];

g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT kal-fcch_detector.o -MD -MP -MF .deps/kal-fcch_detector.Tpo -c -o kal-fcch_detector.o test -f 'fcch_detector.cc' || echo './'fcch_detector.cc fcch_detector.cc: In member function ‘float fcch_detector::freq_detect(const complex*, unsigned int, float*)’: fcch_detector.cc:320:29: error: lvalue required as left operand of assignment fft[i].real() = m_out[i][0]; ^ fcch_detector.cc:321:29: error: lvalue required as left operand of assignment fft[i].imag() = m_out[i][1]; ^ Makefile:470: recipe for target 'kal-fcch_detector.o' failed make: *** [kal-fcch_detector.o] Error 1

@Ka-zam
Copy link
Author

Ka-zam commented Oct 2, 2017

Fixed in fcch_detector.cc L318

fft[i] = complex(m_out[i][0], m_out[i][1]);

Also should use constexpr in fcch_detector.h
static constexpr double GSM_RATE = 1625000.0 / 6.0;

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