compilation issue with cdk library and LEAP 42.1

Hi,

Trying cdk library, I have linking problems at the compilation (« undefined reference » issue).

I’ve installed libncurses5, libncurses5-32bits, libnurses6, ncurses-devel,cdk-devel, libcdk5 packages.

Here’s my compilation command,

   	 	 	 	   
gcc test.c -lcdk -lncurses -o test
  

and the linking error i get :

   	 	 	 	   /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcdk.so : undefined reference to « _nc_acs_map » 
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcdk.so : undefined reference to « _nc_COLS » 
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcdk.so : undefined reference to « _nc_COLORS »
  

Has anyone have encountered this problem with LEAP42.1?
What am i missing?>:(

Thanks

Maybe this will help?
https://bugzilla.opensuse.org/show_bug.cgi?id=918553

In particular, try to use “$(ncursesw6-config --libs)” instead of “-lncurses”.

Or, expanded it would be “-L/usr/lib64/ncurses6 -lncursesw -ltinfo” (on my 13.2 system here at least).
But the point of pkgconfig is that you don’t have to specify the necessary options yourself (which may differ on each system/installation).

You’re the boss wolfi !!
It compile lol!

Thanks a lot !