Button debouncing with arduino due

hello, I have been working on a prokect that requires debouncing of some push buttons, I used the Bounce2 library but I've got a lot of errors with this library and could not compile the sketch, and I have found out from an old thread that it cant be used on an arduino due.

so does any body know if there is another library or any special code I can use with the due to finish this?

What about https://www.arduino.cc/en/Tutorial/Debounce?

Have a look at the simple debouncing system in several things at a time and at planning and implementing a program which does not need any such system.