[SOLVED] "narrowing conversion" error while compiling QUASI88 emulator.
by yabobay from LinuxQuestions.org on (#5MJ01)
I've been trying to compile the QUASI88 PC-88 emulator. It all goes swimmingly, before culminating in this error:
Code:src/fmgen/psg.cpp: In member function void PSG::MakeEnvelopTable()':
src/fmgen/psg.cpp:121:44: error: narrowing conversion of -1' from int' to uint8' {aka unsigned char'} [-Wnarrowing]
121 | static uint8 table3[4] = { 0, 1, -1, 0 };
| ^
make: *** [Makefile:956: obj/fmgen/psg.o] Error 1I googled this error, but what i found was errors that happened to people who were trying to develop software, so that doesn't apply to me. The program is also way obscure, so i can't exactly find any documentation for compiling, let alone in a language i speak.
I'm on Linux Mint 20.2 with GNU Make 4.2.1, GCC 9.3.0 and G++ 9.3.0.
If this isn't the right place for this question, i'm sorry, but i don't know anywhere else for "help i can't compile this obscure piece of software".
Code:src/fmgen/psg.cpp: In member function void PSG::MakeEnvelopTable()':
src/fmgen/psg.cpp:121:44: error: narrowing conversion of -1' from int' to uint8' {aka unsigned char'} [-Wnarrowing]
121 | static uint8 table3[4] = { 0, 1, -1, 0 };
| ^
make: *** [Makefile:956: obj/fmgen/psg.o] Error 1I googled this error, but what i found was errors that happened to people who were trying to develop software, so that doesn't apply to me. The program is also way obscure, so i can't exactly find any documentation for compiling, let alone in a language i speak.
I'm on Linux Mint 20.2 with GNU Make 4.2.1, GCC 9.3.0 and G++ 9.3.0.
If this isn't the right place for this question, i'm sorry, but i don't know anywhere else for "help i can't compile this obscure piece of software".