hello
i have following problem when i try to compile my software using curseses i get:

downloading: wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.7.tar.gz
i run following commands:
./configure --> no errors
make --> no errors
make install --> no errors

but when i want to make my monitor i get:
gcc -o yam -DYDEBUG -DKERNEL_6 -m64 yam.c ... yam_cpusingle -lnurses -lnsl -lcrypt

/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libncurses.a when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[1]: *** [yam] Fehler 1

here my directory /usr/lib: ls -l libncurs*
-rw-r--r-- 1 root richi 416130 2012-11-18 11:13 libncurses.a
-rw-r--r-- 1 root richi 127100 2012-11-18 11:13 libncurses++.a
-rw-r--r-- 1 root richi 2228358 2012-11-18 11:13 libncurses_g.a
lrwxrwxrwx 1 root root 20 2012-11-17 17:43 libncurses.so -> /lib/libncurses.so.5
lrwxrwxrwx 1 root richi 13 2012-11-17 17:46 libncurses.so.5 -> libtermcap.so
-rw-r--r-- 1 root root 144208 2010-03-07 04:33 libncurses++w.a
-rw-r--r-- 1 root root 424736 2010-03-07 04:33 libncursesw.a
lrwxrwxrwx 1 root root 21 2012-11-17 17:50 libncursesw.so -> /lib/libncursesw.so.5

and my directory /lib: ls -l libncurs*
lrwxrwxrwx 1 root root 17 2012-11-17 12:08 libncurses.so.5 -> libncurses.so.5.7
-rw-r--r-- 1 root root 223768 2010-03-07 04:33 libncurses.so.5.7
lrwxrwxrwx 1 root root 18 2012-11-17 12:10 libncursesw.so.5 -> libncursesw.so.5.7
-rw-r--r-- 1 root root 272952 2010-03-07 04:33 libncursesw.so.5.7


my question is: what's wrong (yeah incompatible) and can anybody help me ?
i'm working on a sony vaio PCG-Z1RMP
ubuntu lucid:
Linux version 2.6.32-45-generic (buildd@aatxe) (gcc version 4.4.3
(Ubuntu 4.4.3-4ubuntu5.1) ) #99-Ubuntu SMP Tue Oct 16 16:31:11 UTC 2012
GNU ld (GNU Binutils for Ubuntu) 2.20.1-system.20100303

also installed binaries ( installed with apt-get install ... )
libncurses5, libncurses5-dev, libcurses-dbg, libcursesw5, libcursesw5-dev
libncursesw5-dbg

did anybody have an idea what can id do
thanks
richi