[zeromq-dev] compilation problem

Martin Sustrik sustrik at fastmq.com
Mon Jul 28 10:32:57 CEST 2008


Hi Mark,

I would say you are using new version of GCC that is much more strict 
about includes. We've fixed this issue in upcoming 0MQ/0.3 version (to 
be released next week or so). In the meantime you can get it compiled by 
adding appropriate includes (#include <string.h> in this case).

Martin

mark wrote:
> i get this error when trying to compile 0.2 version.. any suggestions?
> 
>  g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I.. -I.. -g -O2 -MT
> bp_decoder.lo -MD -MP-MF .deps/bp_decoder.Tpo -c bp_decoder.cpp  -fPIC
> -DPIC -o .libs/bp_decoder.o
> In file included from bp_decoder.hpp:25,
>                  from bp_decoder.cpp:20:
> decoder.hpp: In member function 'void
> zmq::decoder_t<T>::write(unsigned char*, size_t)':
> decoder.hpp:58: error: there are no arguments to 'memcpy' that depend
> on a template parameter, so a declaration of 'memcpy' must be
> available
> decoder.hpp:58: error: (if you use '-fpermissive', G++ will accept
> your code, but allowing the use of an undeclared name is deprecated)
> make[2]: *** [bp_decoder.lo] Error 1
> make[2]: Leaving directory `/tmp/zmq-0.2/zmq'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/tmp/zmq-0.2/zmq'
> make: *** [all-recursive] Error 1
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev




More information about the zeromq-dev mailing list