-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move to msgpack 2 #95
Comments
A dirty solution is to define |
Thanks, that fixes compilation. However, I'm not able to set up a connection to a crossbar.io server (see also #2). Question: Has anyone ever managed to use Autobahn|Cpp with VS 2015? |
It compiles with VS2015, runs, connects and authenticates with crossbar.io 0.12.1. After fixing auth flow, I have not tried anything beyond authenticating and receiving a WELCOME. If you are running crossbar.io on windows, disable unix socket listener from crossbar config. I'll commit .sln and .vcxproj along with #46 |
Ah, nice! That's good news. If it can authenticate (eg https://github.com/crossbario/autobahn-cpp/blob/master/examples/wampcra.cpp), chances are high "it just works" (RPC and PubSub). We should probably have a variant of above example that combines that with actually doing something. On the other hand: it's trivial to copy-paste code from the other examples. |
Just noticed, part of my fix for wampcra got overwritten by most recent merge.
|
Thanks for your answers. I'm glad to hear that VS2015 appears to be supported now; however, I'm not able to get it running. I've done the following:
However, when I try to run this program, it says
When debugging with VS2015, a lot of exceptions of type |
Just an addition: With autobahn-python, I can connect to the router (using websocket, not rawsocket which doesn't appear to be supported by the python package) and call the example "add2" method without problems. |
Sorry for the spam, I figured out that the problem was
|
It works on gcc and clang, so if so, I'd consider it a VS bug. Ask MS to fix their compilers. |
|
Sorry l, forgot to mention msg pack on server side. I stepped on that rake also. MSGPACK_DEFAULT_API_VERSION=1 is now defined in the headers for _WIN32 Regards, Denis
|
I think this should be addressed by @DZabavchik recent contributions now. Closing (though I didn't test it .. lack of Windows). |
Thanks a lot! I'll test on monday if it works out-of-the-box with VS2015 now but from what you mention I'm pretty sure it should. |
There is a pre-build step that will complain about setting missing boost, msgpack and OpenSSL directories or updating project settings, it is pretty much self explanatory. Regards, Denis
|
Since we probably don't want to be stuck on v1, I have submitted a defect to msgpack-c for this issue. I was able to provide a simple program demonstrating the issue and isolate it to a specific commit: I think that we should re-open this issue for the time being and revert hardcoding to v1 once msgpack is patched. |
@davidchappelle agreed. reopened and changed title |
Can we at least add I think it'd be best to increase compatibility until msgpack v2 support is there. What do you think? @oberstet If this sounds okay to you I'll create a PR. |
@CanNuhlar yes indeed, sounds good!
|
I am trying to use the autobahn-cpp library in a Visual Studio 2015 project. After including both msgpack-c and autobahn-cpp, I get the following compiler error. I have already enabled the preprocessor flags
MSGPACK_DISABLE_LEGACY_NIL
andMSGPACK_DISABLE_LEGACY_CONVERT
, as suggested in the msgpack-c readme for header-only mode. I'd appreciate any hints!The text was updated successfully, but these errors were encountered: