3

I use libwebsockets for a project . I installed it using Packet Manger on debian jessie . It works well , but that packet is old , so I cloned the latest stable version from github . Now when I try to compile programs , i get error message

undefined reference to `libwebsocket_create_context,
undefined reference to 'libwebsocket_create_context'

etc... I compiled with the command :

gcc test.c -o test -lwebsockets
Sourav Ghosh
  • 133,132
  • 16
  • 183
  • 261
  • 1
    Use `-Lpath/to/your/compiled/websockets/library` – user253751 Jan 28 '16 at 21:26
  • Are you sure there's a libwebsocket_create_context that you should call ? The documentation only mentions a lws_create_context() function. – nos Jan 28 '16 at 21:28
  • Yes you are right , the Syantax has changed , but even after I changed it does not work . What do you mean with the path . Can you show an example , I do not know which path I chould take – user3011195 Jan 28 '16 at 21:39
  • @user3011195 Did you find the solution? I am facing same issue. – Nikhil May 24 '17 at 10:43

0 Answers0