[Libwebsockets] Static Link issue

Jeffrey Zhao chunyong.zhao at qq.com
Fri Mar 27 14:22:50 CET 2015

Dear Sir
When I do the static link with libwebsockets, it indicates that crt0.o is not found.
Any suggestion here?

thank you in advance.

gcc -lpthread -Wall -o2 test-server.c -o test-server -static -lwebsockets -L/Users/blue/Downloads/libwebsockets‍/libwebsockets/build/lib/
ld: library not found for -lcrt0.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [cti-server] Error 1‍
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20150327/6bb4dedc/attachment.html>

More information about the Libwebsockets mailing list