[Libwebsockets] Upgrade from 2.2 to 2.4
normandviking at gmail.com
Thu Dec 7 17:29:59 CET 2017
I upgraded from 2.2 to 2.4 and I am facing a link issue with libwebsockets
when I tried to compile a simple client test program:
g++ -W -Wall -Wpointer-arith -Werror=uninitialized -g -pipe
-D_REENTRANT -D_GNU_SOURCE -I../ -I/export/home/bhamon/work/bs/include
-L/export/home/bhamon/work/bs/lib -L./ -L/usr/local/lib
-L/export/home/development/3rdparty/lib64 -Wl,-E -o wsclient ./wsclient.o
-lwebsockets -ldl -lpthread
./wsclient.o:(.rodata+0xe08): undefined reference to
./wsclient.o:(.rodata+0xe20): undefined reference to
collect2: error: ld returned 1 exit status
I checked your test-client program and we have the same code.
I noticed that you link your program in static. I do use the shared library.
Is there anything special I need to add when I compile that .4 version?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets