0

我将 libwebsockets 用于 C 中的客户端程序。因此,我在我的机器(ubuntu)上本地构建了 libwebsocktes 库。在我想在 Eclipse 中构建项目后,我得到以下输出:

14:58:40 **** Incremental Build of configuration Build (GNU) for project ClientA ****
make all 
cc -o clientA ifaddrs.o mo.o misc.o dm.o ws.o  -lcurl -lrt -lxml2 -ljson-c   -lssl -lcrypto   -lpthread -Wl,-Bstatic -L/home/vps/src/libwebsockets/build/lib -lwebsockets -Wl,-Bdynamic
/usr/bin/ld: /home/bla/libwebsockets/build/lib/libwebsockets.a(ssl.c.o):  undefined reference to symbol 'SSL_get_fd@@OPENSSL_1.0.0'
/usr/lib/gcc/i686-linux-gnu/4.7/../../../i386-linux-gnu/libssl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [clientA] Error 1
14:58:41 Build Finished (took 1s.223ms)

libwebsockets.a 似乎有问题。但是我该如何解决呢?

4

0 回答 0