Try using the 'c' script included in the repository. c -l wuserver
Or, ./build wuserver -Pieter On Sat, Jun 28, 2014 at 5:49 PM, Mellitus Ezeme <[email protected]> wrote: > Hi, > > > I recently started learning ZEROMQ and I am stuck somewhere. I tried to run > the weather update examples(wuclient.c and wuserver.c) and I get the error > below. > > > In file included from wuclient.c:5:0: > zhelpers.h: In function ‘s_sleep’: > zhelpers.h:133:5: warning: implicit declaration of function ‘nanosleep’ > [-Wimplicit-function-declaration] > zhelpers.h: In function ‘s_console’: > zhelpers.h:158:5: warning: implicit declaration of function ‘time’ > [-Wimplicit-function-declaration] > zhelpers.h:159:12: warning: implicit declaration of function ‘localtime’ > [-Wimplicit-function-declaration] > zhelpers.h:159:26: warning: initialization makes pointer from integer > without a cast [enabled by default] > zhelpers.h:161:5: warning: implicit declaration of function ‘strftime’ > [-Wimplicit-function-declaration] > zhelpers.h:161:5: warning: incompatible implicit declaration of built-in > function ‘strftime’ [enabled by default] > wuclient.c: At top level: > zhelpers.h:60:1: warning: ‘s_send’ defined but not used [-Wunused-function] > zhelpers.h:67:1: warning: ‘s_sendmore’ defined but not used > [-Wunused-function] > zhelpers.h:75:1: warning: ‘s_dump’ defined but not used [-Wunused-function] > zhelpers.h:115:1: warning: ‘s_set_id’ defined but not used > [-Wunused-function] > zhelpers.h:125:1: warning: ‘s_sleep’ defined but not used > [-Wunused-function] > zhelpers.h:139:1: warning: ‘s_clock’ defined but not used > [-Wunused-function] > zhelpers.h:156:1: warning: ‘s_console’ defined but not used > [-Wunused-function] > > > The command I used to compile it is: gcc -Wall wuclient.c -o wuclient > -L/usr/local/lib -lzmq > > > I opened the "zhelpers.h" file and "time.h" was included. So I got confused > on why this would happen. Am using Ubuntu 12.04 and please, I am neither an > expert in C or ZEROMQ but this software looks like my realistic hope of > scaling my thesis hurdle. > > Thank you in anticipation of your help. > > > Mellitus. > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
