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

Error compiling in VS2017: #3

Open
xpat07 opened this issue Nov 3, 2017 · 2 comments
Open

Error compiling in VS2017: #3

xpat07 opened this issue Nov 3, 2017 · 2 comments

Comments

@xpat07
Copy link

xpat07 commented Nov 3, 2017

Platform-Toolset: Visual Studio 2017 (v141)

C2864 'std::ratio<_Nx,_Dx>::num': a static data member with an in-class initializer must have non-volatile const integral type

@JamieShelley
Copy link

Hi, use vs 2012. I got it to build and run. However see issue 3 on this thread - was the result (stack overflow)
Code is broken, grr

@goldexone
Copy link

goldexone commented Feb 4, 2018

The error is due to the keyword constexpr, (https://stackoverflow.com/questions/42298214/constexpr-in-c11-and-c14-not-a-difference-to-const-keyword), to remove error (with a workaround) is possible change the define constexpr in the file "serialization.h" at line 49 with a no-compiler keyword, and CryptoNight will compile in VS2017.
Then set the CryptoNight correct linker reference for the libboost_serialization-vc141-mt-*.lib library of Boost C++.

serialization.h
47 #ifndef __GNUC__
48 #ifndef constexpr
49 #define dummy
50 #endif
51 #endif

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

No branches or pull requests

3 participants