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

the type ‘const QColor [4][3]’ of ‘constexpr’ variable ‘app::{anonymous}::PALETTE’ is not literal #2

Open
electricalgorithm opened this issue Apr 6, 2021 · 0 comments

Comments

@electricalgorithm
Copy link

There is another compilation error at %57 in App's part which you can see the error both in name and bottom of this issue. Building are done with these commands:

~$ git clone https://github.com/Rexagon/stm32-emulator.git
~$ cd stm32-emulator
~$ mkdir build && cd build
~$ sudo cmake ../
~$ sudo make install

Error:

[ 57%] Building CXX object src/app/CMakeFiles/app.dir/models/assembly_view_model.cpp.o
/tmp/stm32-emulator/src/app/models/assembly_view_model.cpp:16:18: error: the type ‘const QColor [4][3]’ of ‘constexpr’ variable ‘app::{anonymous}::PALETTE’ is not literal
   16 | constexpr QColor PALETTE[4][3] = {
      |                  ^~~~~~~
make[2]: *** [src/app/CMakeFiles/app.dir/build.make:99: src/app/CMakeFiles/app.dir/models/assembly_view_model.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:117: src/app/CMakeFiles/app.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
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