Hi everyone, I was trying to use skyhook, but when I tried to compile the example I get this error:
Quote:
g++ -o skyhook wpsapitest.o libwpsapi.so
/usr/lib/gcc/i486-slackware-linux/4.4.3/../../../../i486-slackware-linux/bin/ld: warning: libiw.so.29, needed by libwpsapi.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/i486-slackware-linux/4.4.3/../../../../i486-slackware-linux/bin/ld: warning: libcurl-gnutls.so.4, needed by libwpsapi.so, not found (try using -rpath or -rpath-link)
libwpsapi.so: undefined reference to `iw_get_priv_size'
libwpsapi.so: undefined reference to `iw_sockets_open'
libwpsapi.so: undefined reference to `iw_extract_event_stream'
libwpsapi.so: undefined reference to `iw_dbm2mwatt'
libwpsapi.so: undefined reference to `curl_slist_free_all@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_global_init@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_fdset@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_remove_handle@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `iw_get_range_info'
libwpsapi.so: undefined reference to `curl_global_cleanup@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `iw_enum_devices'
libwpsapi.so: undefined reference to `curl_easy_setopt@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_cleanup@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_init@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_perform@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_slist_append@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `iw_init_event_stream'
libwpsapi.so: undefined reference to `iw_get_priv_info'
libwpsapi.so: undefined reference to `curl_multi_add_handle@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_easy_init@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_easy_cleanup@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_info_read@CURL_GNUTLS_3'
collect2: ld returned 1 exit status
make: *** [skyhook] Error 1
|
This is my Makefile:
Quote:
TARGET := skyhook
SRCS := ${wildcard *.cpp}
OBJS := ${SRCS:.cpp=.o}
CCFLAGS =
LDFLAGS =
LIBS = libwpsapi.so
CC = g++
INCL =
.PHONY: all clean distclean
all:: ${TARGET}
${TARGET}: ${OBJS}
${CC} ${LDFLAGS} ${INCL} -o $@ $^ ${LIBS}
${OBJS}: %.o: %.cpp %.dep
${CC} ${CCFLAGS} ${INCL} -o $@ -c $<
clean::
-rm -f *~ *.o ${TARGET}
distclean:: clean
|
I see that slackware came with wireless tools, and curl, so what is the problem?