You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make bin/simple_publisher bin/simple_subscriber bin/reconnect_subscriber bin/bio_publisher bin/openssl_publisher
gcc -Wextra -Wall -std=gnu99 -Iinclude -Wno-unused-parameter -Wno-unused-variable -Wno-duplicate-decl-specifier examples/simple_publisher.c src/mqtt.c src/mqtt_pal.c -lpthread -lws2_32 -o bin/simple_publisher
Infileincludedfrominclude/mqtt.h:43:0,
fromexamples/simple_publisher.c:11:
include/mqtt_pal.h:128:21: error: conflicting types for 'ssize_t'
Infileincludedfromc:\home\projekte\svn\rdussmaster\tools\mingw-gcc\bin\../lib/gcc/mingw32/4.7.2/../../../../include/io.h:20:0,
fromc:\home\projekte\svn\rdussmaster\tools\mingw-gcc\bin\../lib/gcc/mingw32/4.7.2/../../../../include/unistd.h:12,
fromexamples/simple_publisher.c:6:
c:\home\projekte\svn\rdussmaster\tools\mingw-gcc\bin\../lib/gcc/mingw32/4.7.2/../../../../include/sys/types.h:118:18: note: previous declaration of 'ssize_t' was here
Infileincludedfromexamples/simple_publisher.c:12:0:
examples/templates/posix_sockets.h: In function 'open_nb_socket':
examples/templates/posix_sockets.h:32:5: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
examples/templates/posix_sockets.h:54:5: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
examples/templates/posix_sockets.h:60:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
examples/templates/posix_sockets.h:62:9: warning: passing argument 3 of 'ioctlsocket' from incompatible pointer type [enabled by default]
Infileincludedfrominclude/mqtt_pal.h:123:0,
frominclude/mqtt.h:43,
fromexamples/simple_publisher.c:11:
c:\home\projekte\svn\rdussmaster\tools\mingw-gcc\bin\../lib/gcc/mingw32/4.7.2/../../../../include/winsock2.h:540:32: note: expected 'u_long *' but argument is of type 'int *'
examples/simple_publisher.c: In function 'main':
examples/simple_publisher.c:130:5: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
examples/simple_publisher.c: At top level:
cc1.exe: warning: unrecognized command line option "-Wno-duplicate-decl-specifier" [enabled by default]
make: *** [bin/simple_publisher] Error 1
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: