Autobahn|cpp cannot compile with newer msgpack

#1

There is no msgpack::type::DOUBLE in the msgpack git any more, and Autobahn|cpp uses this in https://github.com/tavendo/AutobahnCpp/blob/master/autobahn/autobahn_impl.hpp

I found that adding -DMSGPACK_USE_LEGACY_NAME_AS_FLOAT to the SConstruct of the Crossbar cpp sample fixed the compile issue. Don’t forget to also compile the msgpack library itself with this option (configure CFLAGS=’-DMSGPACK_USE_LEGACY_NAME_AS_FLOAT’), or you will get a nasty sig11 when your server sample runs.

Even better would be if Autobahn no longer used double, as it seems to be deprecated.

0 Likes

#2

It’s still OK to use doubles, msgpack-c just started referring to them as “floats”, along with regular C/C++ floats, see https://github.com/msgpack/msgpack-c/wiki/cpp_configure.
I agree it would be nice to see these changes reflected in Autobahn.

···

On Thursday, February 19, 2015 at 4:45:05 AM UTC-8, Jens Kristian Jensen wrote:

There is no msgpack::type::DOUBLE in the msgpack git any more, and Autobahn|cpp uses this in https://github.com/tavendo/AutobahnCpp/blob/master/autobahn/autobahn_impl.hpp

I found that adding -DMSGPACK_USE_LEGACY_NAME_AS_FLOAT to the SConstruct of the Crossbar cpp sample fixed the compile issue. Don’t forget to also compile the msgpack library itself with this option (configure CFLAGS=’-DMSGPACK_USE_LEGACY_NAME_AS_FLOAT’), or you will get a nasty sig11 when your server sample runs.

Even better would be if Autobahn no longer used double, as it seems to be deprecated.

0 Likes

#3

Yes: https://github.com/tavendo/AutobahnCpp/issues/30

···

Am Sonntag, 1. März 2015 06:17:50 UTC+1 schrieb IvanK:

It’s still OK to use doubles, msgpack-c just started referring to them as “floats”, along with regular C/C++ floats, see https://github.com/msgpack/msgpack-c/wiki/cpp_configure.
I agree it would be nice to see these changes reflected in Autobahn.

On Thursday, February 19, 2015 at 4:45:05 AM UTC-8, Jens Kristian Jensen wrote:

There is no msgpack::type::DOUBLE in the msgpack git any more, and Autobahn|cpp uses this in https://github.com/tavendo/AutobahnCpp/blob/master/autobahn/autobahn_impl.hpp

I found that adding -DMSGPACK_USE_LEGACY_NAME_AS_FLOAT to the SConstruct of the Crossbar cpp sample fixed the compile issue. Don’t forget to also compile the msgpack library itself with this option (configure CFLAGS=’-DMSGPACK_USE_LEGACY_NAME_AS_FLOAT’), or you will get a nasty sig11 when your server sample runs.

Even better would be if Autobahn no longer used double, as it seems to be deprecated.

0 Likes