I am using Atmega32 and trying to interface 4X4 keypad using library code is working fine when used "void setup() {} and void loop() {}" but unable to work with "int main() " loop....?
The magic word here is: "Arduino".
It is written for the Arduino environment and you ask a question on a Arduino forum.
You can see in the code that it uses the Arduino environment, it does not run without it: https://github.com/Chris--A/Keypad.
If you want the same for a non-arduino environment, then you have to rewrite it or find other code.
I'm a Arduino-enthusiast, so don't ask me how to rewrite it