More than likely you've figured this one out...but I had problems too.
The KDevelop linker options are under the Project->Options menu, you are essentially sending the same codes
-L = include additional search directory, so try -L/usr/X11R6/lib
-l = adds a library to the project, in your case -lmenu -lcurses
Hope this helps...