[Libwebsockets] Static Link issue

Andy Green andy at warmcat.com
Fri Mar 27 23:58:22 CET 2015

On 27 March 2015 21:22:50 GMT+08:00, Jeffrey Zhao <chunyong.zhao at qq.com> wrote:
>Dear Sir
>When I do the static link with libwebsockets, it indicates that crt0.o
>is not found.
>Any suggestion here?

It's not a question about lws.  crt0 is C Runtime Library.  Maybe try a clang list.

Or, don't static link...


>thank you in advance.
>gcc -lpthread -Wall -o2 test-server.c -o test-server -static
>ld: library not found for -lcrt0.o
>clang: error: linker command failed with exit code 1 (use -v to see
>make: *** [cti-server] Error 1‍
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org

More information about the Libwebsockets mailing list