S3SH icon indicating copy to clipboard operation
S3SH copied to clipboard

Compile Error

Open TippyLion28 opened this issue 4 years ago • 0 comments

/home/scott/Downloads/S3SH/source/daisywheel.cpp:169:44: note:   'std::array<std::__cxx11::basic_string<char>, 36>' is not derived from 'const __gnu_cxx::new_allocator<_Tp>'
  169 |             if(keyb->current_key_layout != normal)
      |                                            ^~~~~~
/home/scott/Downloads/S3SH/source/daisywheel.cpp:171:44: error: cannot convert 'std::array<std::__cxx11::basic_string<char>, 36>' to 'int' in assignment
  171 |                 keyb->current_key_layout = normal;
      |                                            ^~~~~~
      |                                            |
      |                                            std::array<std::__cxx11::basic_string<char>, 36>
/home/scott/Downloads/S3SH/source/daisywheel.cpp:172:35: error: cannot convert 'std::array<std::__cxx11::basic_string<char>, 36>' to 'int'
  172 |                 cal_buttons(keyb, normal);
      |                                   ^~~~~~
      |                                   |
      |                                   std::array<std::__cxx11::basic_string<char>, 36>
In file included from /home/scott/Downloads/S3SH/source/daisywheel.cpp:1:
/home/scott/Downloads/S3SH/source/daisywheel.hpp:35:76: note:   initializing argument 2 of 'static void daisywheelkbd::cal_buttons(daisywheelkbd*, int)'
   35 |     static void cal_buttons(daisywheelkbd *kbd,std::array<std::string, 36> str);
      |                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/home/scott/Downloads/S3SH/source/daisywheel.cpp: At global scope:
/home/scott/Downloads/S3SH/source/daisywheel.cpp:209:13: error: no declaration matches 'std::string daisywheelkbd::get_input()'
  209 | std::string daisywheelkbd::get_input()
      |             ^~~~~~~~~~~~~
/home/scott/Downloads/S3SH/source/daisywheel.cpp:209:13: note: no functions named 'std::string daisywheelkbd::get_input()'
In file included from /home/scott/Downloads/S3SH/source/daisywheel.cpp:1:
/home/scott/Downloads/S3SH/source/daisywheel.hpp:14:7: note: 'class daisywheelkbd' defined here
   14 | class daisywheelkbd
      |       ^~~~~~~~~~~~~
/home/scott/Downloads/S3SH/source/daisywheel.cpp:319:5: error: no declaration matches 'int daisywheelkbd::checkForSpecialInput(std::string, daisywheelkbd*)'
  319 | int daisywheelkbd::checkForSpecialInput(std::string character, daisywheelkbd *keyb)
      |     ^~~~~~~~~~~~~
In file included from /home/scott/Downloads/S3SH/source/daisywheel.cpp:1:
/home/scott/Downloads/S3SH/source/daisywheel.hpp:37:16: note: candidate is: 'static int daisywheelkbd::checkForSpecialInput(int, daisywheelkbd*)'
   37 |     static int checkForSpecialInput(std::string str, daisywheelkbd *kbd);
      |                ^~~~~~~~~~~~~~~~~~~~
In file included from /home/scott/Downloads/S3SH/source/daisywheel.cpp:1:
/home/scott/Downloads/S3SH/source/daisywheel.hpp:14:7: note: 'class daisywheelkbd' defined here
   14 | class daisywheelkbd
      |       ^~~~~~~~~~~~~
make[1]: *** [/opt/devkitpro/devkitARM/base_rules:80: daisywheel.o] Error 1
make: *** [Makefile:165: all] Error 2

TippyLion28 avatar Oct 10 '20 16:10 TippyLion28