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

common/io.hpp:53:22: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float IO::MISSING_GENO’ of non-integral type [-fpermissive] #1

Open
diegobardiaux opened this issue Mar 23, 2022 · 1 comment

Comments

@diegobardiaux
Copy link

Hello,

When compiling the code from source, I got this error

make

g++ -Wall -g -I/home/kaiwang/usr/boost/boost_1_58_0/ -I/home/kaiwang/usr/gsl/gsl/include -Dcnv -c common/analyzer.cpp
In file included from common/analyzer.cpp:10:
common/io.hpp:53:22: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float IO::MISSING_GENO’ of non-integral type [-fpermissive]
53 | const static float MISSING_GENO=9.;
| ^~~~~~~~~~~~
make: *** [makefile:90: analyzer.o] Error 1

@kaichop
Copy link
Contributor

kaichop commented Mar 24, 2022 via email

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

2 participants