guelfey/threedo — Issue #2: Make fails
Author: joequery
Created: 2012-02-25 18:22:21+00:00
State: open

```
/web/lab/c/threedo$ make
cc -c -o task.o task.c
task.c: In function ‘create_task’:
task.c:62:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
cc -c -o util.o util.c
cc -c -o view.o view.c
cc -lncurses -o threedo main.o settings.o task.o util.o view.o
util.o: In function `threedo_error_exit':
util.c:(.text+0x113): undefined reference to `endwin'
view.o: In function `action_add_task':
view.c:(.text+0x57): undefined reference to `LINES'
view.c:(.text+0x61): undefined reference to `stdscr'
view.c:(.text+0x70): undefined reference to `wmove'
view.c:(.text+0x7c): undefined reference to `stdscr'
view.c:(.text+0x8e): undefined reference to `waddnstr'
view.c:(.text+0x93): undefined reference to `echo'
view.c:(.text+0xa5): undefined reference to `LINES'
view.c:(.text+0xaf): undefined reference to `stdscr'
view.c:(.text+0xbe): undefined reference to `wmove'
view.c:(.text+0xc5): undefined reference to `stdscr'
view.c:(.text+0xdc): undefined reference to `wgetnstr'
view.c:(.text+0xe8): undefined reference to `noecho'
view.o: In function `init_ncurses':
view.c:(.text+0x29b): undefined reference to `initscr'
view.c:(.text+0x2a0): undefined reference to `cbreak'
view.c:(.text+0x2a5): undefined reference to `noecho'
view.c:(.text+0x2ac): undefined reference to `stdscr'
view.c:(.text+0x2b9): undefined reference to `keypad'
view.o: In function `init_view':
view.c:(.text+0x307): undefined reference to `stdscr'
view.c:(.text+0x30f): undefined reference to `wrefresh'
view.o: In function `main_view_loop':
view.c:(.text+0x3bc): undefined reference to `LINES'
view.c:(.text+0x489): undefined reference to `stdscr'
view.c:(.text+0x491): undefined reference to `wgetch'
view.o: In function `redraw':
view.c:(.text+0x4d3): undefined reference to `stdscr'
view.c:(.text+0x4db): undefined reference to `wclear'
view.c:(.text+0x4ef): undefined reference to `stdscr'
view.c:(.text+0x501): undefined reference to `wattr_on'
view.c:(.text+0x508): undefined reference to `stdscr'
view.c:(.text+0x51a): undefined reference to `wmove'
view.c:(.text+0x526): undefined reference to `stdscr'
view.c:(.text+0x538): undefined reference to `waddnstr'
view.c:(.text+0x53f): undefined reference to `stdscr'
view.c:(.text+0x551): undefined reference to `wattr_off'
view.c:(.text+0x569): undefined reference to `stdscr'
view.c:(.text+0x57b): undefined reference to `wattr_on'
view.c:(.text+0x581): undefined reference to `LINES'
view.c:(.text+0x58b): undefined reference to `stdscr'
view.c:(.text+0x59a): undefined reference to `wmove'
view.c:(.text+0x5a1): undefined reference to `stdscr'
view.c:(.text+0x5a9): undefined reference to `wclrtoeol'
view.c:(.text+0x5ec): undefined reference to `printw'
view.c:(.text+0x5f3): undefined reference to `stdscr'
view.c:(.text+0x605): undefined reference to `wattr_off'
view.c:(.text+0x618): undefined reference to `LINES'
view.c:(.text+0x622): undefined reference to `stdscr'
view.c:(.text+0x631): undefined reference to `wmove'
view.c:(.text+0x638): undefined reference to `stdscr'
view.c:(.text+0x640): undefined reference to `wclrtoeol'
view.c:(.text+0x664): undefined reference to `stdscr'
view.c:(.text+0x679): undefined reference to `wmove'
view.c:(.text+0x680): undefined reference to `stdscr'
view.c:(.text+0x688): undefined reference to `wclrtoeol'
view.c:(.text+0x695): undefined reference to `LINES'
view.c:(.text+0x6a7): undefined reference to `stdscr'
view.c:(.text+0x6b9): undefined reference to `wmove'
view.c:(.text+0x6c5): undefined reference to `stdscr'
view.c:(.text+0x6d7): undefined reference to `waddnstr'
view.c:(.text+0x6de): undefined reference to `stdscr'
view.c:(.text+0x6f0): undefined reference to `wmove'
view.c:(.text+0x6fc): undefined reference to `stdscr'
view.c:(.text+0x70e): undefined reference to `waddnstr'
view.c:(.text+0x7b3): undefined reference to `mvprintw'
view.c:(.text+0x7ba): undefined reference to `stdscr'
view.c:(.text+0x7cf): undefined reference to `wmove'
view.c:(.text+0x7e8): undefined reference to `stdscr'
view.c:(.text+0x7f8): undefined reference to `waddnstr'
view.c:(.text+0x7ff): undefined reference to `stdscr'
view.c:(.text+0x814): undefined reference to `wmove'
view.c:(.text+0x820): undefined reference to `stdscr'
view.c:(.text+0x837): undefined reference to `waddnstr'
view.c:(.text+0x856): undefined reference to `LINES'
view.c:(.text+0x898): undefined reference to `stdscr'
view.c:(.text+0x8a7): undefined reference to `wmove'
view.c:(.text+0x8b0): undefined reference to `stdscr'
view.c:(.text+0x8c2): undefined reference to `wmove'
view.c:(.text+0x8c9): undefined reference to `stdscr'
view.c:(.text+0x8d1): undefined reference to `wrefresh'
view.o: In function `show_main_view':
view.c:(.text+0x922): undefined reference to `endwin'
collect2: ld returned 1 exit status
make: *** [threedo] Error 1
```

I know the project is in rapid development, but I haven't been able to Make for quite a bit. I'm not too familiar with C (I'm wanting to use your project as a basis of learning!), but perhaps you should [generate dependencies in the makefile](http://stackoverflow.com/questions/313778/generate-dependencies-for-a-makefile-for-a-project-in-c-c)?