Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Compile problem, rfcomm_shell.c

Help
jonl_24
2006-07-09
2013-04-11
  • jonl_24
    jonl_24
    2006-07-09

    I'm having some trouble getting this to make.

    Using Slackware 10.2.

    slax tools # gcc -lbluetooth -lreadline rfcomm_shell.c -o rfcomm_shell

    /usr/local/lib/libreadline.so: undefined reference to `tgetnum'
    /usr/local/lib/libreadline.so: undefined reference to `tgoto'
    /usr/local/lib/libreadline.so: undefined reference to `tgetflag'
    /usr/local/lib/libreadline.so: undefined reference to `BC'
    /usr/local/lib/libreadline.so: undefined reference to `tputs'
    /usr/local/lib/libreadline.so: undefined reference to `PC'
    /usr/local/lib/libreadline.so: undefined reference to `tgetent'
    /usr/local/lib/libreadline.so: undefined reference to `UP'
    /usr/local/lib/libreadline.so: undefined reference to `tgetstr'
    collect2: ld returned 1 exit status

    What could be the problem?

    -- Thanks

     
    • labar2fer
      labar2fer
      2006-07-10

      you do:
      gcc -lbluetooth -lreadline rfcomm_shell.c -o rfcomm_shell
      try with this it will be ok :
      gcc -lbluetooth -lreadline -lncurses rfcomm_shell.c -o rfcomm_shell