I'm having trouble figuring out what's wrong with my files for compiling. the initial errors are pointing to the .h and corresponding part in the keymap.c files but it seems fine to me? i haven't even managed to get to figuring out the joystick part which is where i thought i would start having a bunch of trouble

Unsure the best way to show files but I don't think copy pasting them into the body of this post would be best so I've uploaded here: https://drive.google.com/drive/folders/1WKobV73ZdovPCUUcp0jLBLaX8L6IFEmp?usp=drive_link

The txt file shows the error text I get when trying to compile

Thank you

  • orclev@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Looking at what you've done I think the issue is your LAYOUT macro. You've got different sized nested arrays declared. In keymap.c you declare that keymaps is a MATRIX_ROWS by MATRIX_COLS array, but in your macro for LAYOUT you define the first 5 rows as having 7 entries, and the remaining 5 rows as having 6 entries so it can't work out if you want a 10x7 array or a 10x6 array.

    Edit: also taking a look at config.h looks like MATRIX_COLS is defined as 6, so you've got 1 extra key defined in each of your first 5 rows.

    • denton@lemm.eeOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Yes I spotted that error and made it 7 but forgot to update the Google drive! 😅