[Libwebsockets] /usr/local/include/libwebsockets.h:487:8: error: forward declaration of ‘struct libwebsocket’

satya gowtham kudupudi satyagowtham.k at gmail.com
Mon Sep 29 20:54:47 CEST 2014


Its fixed. Now I ran into below linker errors

g++     -o dist/Debug/GNU-Linux-x86/ferrymediaserver
build/Debug/GNU-Linux-x86/FerryStream.o
build/Debug/GNU-Linux-x86/WSServer.o build/Debug/GNU-Linux-x86/global.o
build/Debug/GNU-Linux-x86/main.o -L/usr/lib/i386-linux-gnu -lssl -lpthread
-lcrypto -lz -lbase -lwebsockets
build/Debug/GNU-Linux-x86/WSServer.o: In function
`WSServer::callback_http(libwebsocket_context*, libwebsocket*,
libwebsocket_callback_reasons, void*, void*, unsigned int)':
/home/gowtham/Projects/ferrymediaserver/WSServer.cpp:179: *undefined
reference to `libwebsockets_return_http_status'*
/home/gowtham/Projects/ferrymediaserver/WSServer.cpp:186: undefined
reference to `libwebsockets_return_http_status'
/home/gowtham/Projects/ferrymediaserver/WSServer.cpp:265: undefined
reference to `libwebsockets_return_http_status'
/home/gowtham/Projects/ferrymediaserver/WSServer.cpp:314: undefined
reference to `libwebsockets_return_http_status'
/home/gowtham/Projects/ferrymediaserver/WSServer.cpp:350: *undefined
reference to `libwebsocket_set_timeout'*

--
Gowtham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20140930/79f4a7cd/attachment-0001.html>


More information about the Libwebsockets mailing list