bkerneldev kb.c compile errors
Posted: Tue Aug 02, 2005 8:46 am
hi
i hope this is in the right place other wise im sorry
i am writing my own os using the bkerneldev tutorial on bonafide OS i am trying to compile kb.c from it into my own os
when compiling i get these errors:
lib\kb\kb.c: In function 'keyboard_handler':
lib\kb\kb.c:13: error: parameter 'kbdus' is initialized
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
.... continues on for every line between 15 - 50
lib\kb\kb.c:50: warning: excess elements in scalar initializer
lib\kb\kb.c:50: warning: (near initialization for 'kbdus')
lib\kb\kb.c:55: error: syntax error before '{' token
i have tried looking around for solutions to this problem but not i have found have worked, and i cannot see what is wrong as the normal bkerneldev compile without the 2 error but still has all the warnings.
i cannot understand why i get the errors.
Lloyd
i hope this is in the right place other wise im sorry
i am writing my own os using the bkerneldev tutorial on bonafide OS i am trying to compile kb.c from it into my own os
when compiling i get these errors:
lib\kb\kb.c: In function 'keyboard_handler':
lib\kb\kb.c:13: error: parameter 'kbdus' is initialized
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
lib\kb\kb.c:15: warning: excess elements in scalar initializer
lib\kb\kb.c:15: warning: (near initialization for 'kbdus')
.... continues on for every line between 15 - 50
lib\kb\kb.c:50: warning: excess elements in scalar initializer
lib\kb\kb.c:50: warning: (near initialization for 'kbdus')
lib\kb\kb.c:55: error: syntax error before '{' token
i have tried looking around for solutions to this problem but not i have found have worked, and i cannot see what is wrong as the normal bkerneldev compile without the 2 error but still has all the warnings.
i cannot understand why i get the errors.
Lloyd