[zeromq-dev] building examples fails though czmq is standardly installed : undefined reference to `zsocket_new'
Laurent Alebarde
l.alebarde at free.fr
Wed Jun 26 14:37:55 CEST 2013
Under the Eclipse CDT, it works. The only difference I can see is that
under the console, I use gcc v. 4.5.4, and under Eclipse gcc v 4.7.1
with c++11
This should not make a difference since paths are the same ?
Le 26/06/2013 14:19, Laurent Alebarde a écrit :
> Hi list,
>
> Though czmq is installed and installed in standard locations, building
> examples fails. Any idea please ?
>
> My CZMQ install :
> ------------------------
> /usr/lib64/pkgconfig/libczmq.pc
> /usr/lib64/libczmq.so.1.0.0
> /usr/share/doc/czmq-1.3.2/AUTHORS.bz2
> /usr/share/doc/czmq-1.3.2/NEWS.bz2
> /usr/share/man/man7/zclock.7.bz2
> /usr/share/man/man7/zlist.7.bz2
> /usr/share/man/man7/zctx.7.bz2
> /usr/share/man/man7/czmq.7.bz2
> /usr/share/man/man7/zthread.7.bz2
> /usr/share/man/man7/zsocket.7.bz2
> /usr/share/man/man7/zhash.7.bz2
> /usr/share/man/man7/zloop.7.bz2
> /usr/share/man/man7/zframe.7.bz2
> /usr/share/man/man7/zstr.7.bz2
> /usr/share/man/man7/zsockopt.7.bz2
> /usr/share/man/man7/zfile.7.bz2
> /usr/share/man/man7/zmutex.7.bz2
> /usr/share/man/man7/zmsg.7.bz2
> /usr/include/zloop.h
> /usr/include/zstr.h
> /usr/include/zctx.h
> /usr/include/zhash.h
> /usr/include/zfile.h
> /usr/include/zclock.h
> /usr/include/czmq_prelude.h
> /usr/include/zsockopt.h
> /usr/include/zsocket.h
> /usr/include/zmutex.h
> /usr/include/czmq.h
> /usr/include/zmsg.h
> /usr/include/zlist.h
> /usr/include/zframe.h
> /usr/include/zthread.h
> /usr/lib64/libczmq.so.1
> /usr/lib64/libczmq.so
>
> Build attempt :
> --------------------
> $ ./build flclient1
> flclient1
> Compiling flclient1 (gcc -c -O2 -D_REENTRANT -D_GNU_SOURCE -Wall
> -Wno-unused -fno-strict-aliasing -DBASE_THREADSAFE -I. flclient1.c)...
> Linking flclient1 (gcc -O2 -D_REENTRANT -D_GNU_SOURCE -Wall
> -Wno-unused -fno-strict-aliasing -DBASE_THREADSAFE flclient1.o -o
> flclient1 -Wl,--start-group -lpthread -lm -lrt -lcrypt -luuid
> -Wl,--end-group -L. -L. -L. -lpthread -lm -lrt -lcrypt -luuid)...
> flclient1.o: In function `s_try_request':
> flclient1.c:(.text+0x3e): undefined reference to `zsocket_new'
> flclient1.c:(.text+0x51): undefined reference to `zsocket_connect'
> flclient1.c:(.text+0x59): undefined reference to `zmsg_dup'
> flclient1.c:(.text+0x6b): undefined reference to `zmsg_send'
> flclient1.c:(.text+0x97): undefined reference to `zmq_poll'
> flclient1.c:(.text+0xa6): undefined reference to `zmsg_recv'
> flclient1.c:(.text+0xb4): undefined reference to `zsocket_destroy'
> flclient1.o: In function `main':
> flclient1.c:(.text+0xf1): undefined reference to `zctx_new'
> flclient1.c:(.text+0xfb): undefined reference to `zmsg_new'
> flclient1.c:(.text+0x10f): undefined reference to `zmsg_addstr'
> flclient1.c:(.text+0x18e): undefined reference to `zmsg_destroy'
> flclient1.c:(.text+0x198): undefined reference to `zmsg_destroy'
> flclient1.c:(.text+0x1a2): undefined reference to `zctx_destroy'
> collect2: ld a retourné 1 code d'état d'exécution
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130626/99f64c41/attachment.htm>
More information about the zeromq-dev
mailing list