DFord425
December 18th, 2007, 11:33 AM
I am trying to compile a C program using the curses library but i get an error saying dford@dford-laptop:~/CS355$ cc snake.c -lcurses -o snake
snake.c:9:20: error: curses.h: No such file or directory
snake.c: In function ‘main’:
snake.c:28: error: ‘LINES’ undeclared (first use in this function)
snake.c:28: error: (Each undeclared identifier is reported only once
snake.c:28: error: for each function it appears in.)
snake.c:22: warning: return type of ‘main’ is not ‘int’
Do i need to install it with build essential? I thought i did that when i installed the other libraries for C.
snake.c:9:20: error: curses.h: No such file or directory
snake.c: In function ‘main’:
snake.c:28: error: ‘LINES’ undeclared (first use in this function)
snake.c:28: error: (Each undeclared identifier is reported only once
snake.c:28: error: for each function it appears in.)
snake.c:22: warning: return type of ‘main’ is not ‘int’
Do i need to install it with build essential? I thought i did that when i installed the other libraries for C.