Recent

Author Topic: Trying to explore ncurses, but can't compile example from fpcsrc  (Read 2043 times)

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 758
Using linux + Lazarus 3.2 + fpc 3.3.3, trying to compile /fpcsrc/packages/ncurses/examples/testn.pp

I get the following warning:
      Warning: linker: /usr/bin/ld: cannot find -lncursesw
then
      testn.pp(31,1)Error:Error while linking

I see that unit ncurses is used and that it contains

      {$LINKLIB libncursesw}   

and on checking see the /lib/i386-linux-gnu/libncursesw.so.5 library is included in my system.

I don't know how to interpret the "Warning: linker:" message or how to proceed.  Any help would be appreciated. 

cdbc

  • Hero Member
  • *****
  • Posts: 2808
    • http://www.cdbc.dk
Re: Trying to explore ncurses, but can't compile example from fpcsrc
« Reply #1 on: August 22, 2025, 07:23:08 pm »
Hi Curt
Try to install the "libncursesw-dev" package in your distro...
I think that's what the linker is looking for...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 758
Re: Trying to explore ncurses, but can't compile example from fpcsrc
« Reply #2 on: August 22, 2025, 09:04:29 pm »
Yes, that did the job.  Thank you for the help.

 

TinyPortal © 2005-2018