Skip to content
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

C4592 warning in Visual Studio 2015 Update 1 #34

Closed
hs3180 opened this issue Dec 18, 2015 · 2 comments
Closed

C4592 warning in Visual Studio 2015 Update 1 #34

hs3180 opened this issue Dec 18, 2015 · 2 comments
Labels

Comments

@hs3180
Copy link

hs3180 commented Dec 18, 2015

There is a warning that stops compiling websocket++ in line 164, connection.hpp

static std::vector<int> const versions_supported = {0,7,8,13};
Severity Code Description Project File Line Suppression State
Warning C4592 'websocketpp::versions_supported': symbol will be dynamically initialized (implementation limitation) cpprestsdk140 \path\to\cpprestsdk\Release\libs\websocketpp\websocketpp\connection.hpp 164
Error C2220 warning treated as error - no 'object' file generated cpprestsdk140 \path\to\cpprestsdk\Release\libs\websocketpp\websocketpp\connection.hpp 164

Seems that it is a bug in vs2015-1:
http://stackoverflow.com/questions/34013930/error-c4592-symbol-will-be-dynamically-initialized-vs2015-1-static-const-std

@kavyako
Copy link
Contributor

kavyako commented Dec 18, 2015

You are right, and it looks like the warning has been fixed for next VS Update.
For the time being, you could suppress the warning in casablanca140.vcxproj.
We will gladly accept a PR if you wish to contribute.

@kavyako
Copy link
Contributor

kavyako commented Jan 5, 2016

The fix is now in development branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants