I'm working on a program in which I use PDCurses function move()
to shift keyboard cursor position where I need it to be from time to time.
I get all working except for this, as when I go compiling (I'm using Dev-C++) I keep getting the "undefined reference to 'move' " linker error, although the <curses.h>
header is included and the library package properly installed via his own .DevPak file (3.2 the latest found release).
In that library, the move
function has his prototype defined like int move (int, int);
and, in my code, I tried both calling it like move (10, 10);
(as integer variables LINES and COLS should be defined in the library as well) and like move (LINES, COLS);
after manually defining int LINES = 10, COLS = 10;
. I also tried using wmove
(which basically does the same thing and has his prototype defined like int wmove (WINDOW *, int, int);
), getting the same result.
Why am I getting this error?
(I could post my code, but I do nothing but calling the interested function, so I consider that useless. Anyway I'll do that if you find that useful.)