[zeromq-dev] compilation problem
Martin Sustrik
sustrik at fastmq.com
Mon Jul 28 15:11:54 CEST 2008
Mark,
You can check the code out from here:
http://svn.fastmq.org/svn/zeromq/branches/refactoring-for-0.3/
You need subversion to do that. To build it, you need GSL language from
iMatix installed. Then:
./autogen.sh
./configure
make
sudo make install
To understand how the messaging works like you can have a look at
/examples/camera (videoconferencing example) and /examples/exchange
(stock exchange example). However, you'll have to do without the
documentation at the moment (we are getting it together right now so
that we can release verion 0.3 next week).
Cheers.
Martin
mark wrote:
> Hi Martin,
> I am using Fedora core 9 / gcc 4.0 version.
>
> I tried adding string.h , and now a similar error pops again..and it
> does in a lot of files.
> how do I get the 0.3 version now?
> thanks
>
> On Mon, Jul 28, 2008 at 1:32 AM, Martin Sustrik <sustrik at fastmq.com> wrote:
>> 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