Created
August 8, 2015 02:01
-
-
Save patodeborracha/6f715008bec979ecaa57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1>------ Build started: Project: RakNetDLL, Configuration: Debug Win32 ------ | |
1> Base64Encoder.cpp | |
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\exception(361): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc | |
1> CCRakNetSlidingWindow.cpp | |
1>E:\Xitano\CPP\DevTools2\Build\RakNet-4.081\Source\CCRakNetSlidingWindow.cpp(221): error C2668: 'abs': ambiguous call to overloaded function | |
1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdlib.h(359): note: could be '__int64 abs(const __int64) throw()' | |
1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdlib.h(354): note: or 'long abs(const long) throw()' | |
1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdlib.h(284): note: or 'int abs(int)' | |
1> E:\Xitano\CPP\DevTools2\Build\RakNet-4.081\Source\CCRakNetSlidingWindow.cpp(221): note: while trying to match the argument list '(double)' | |
1> CCRakNetUDT.cpp | |
1> EpochTimeToString.cpp | |
1> NatPunchthroughServer.cpp | |
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\exception(361): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc | |
1> RakNetSocket2_Berkley_NativeClient.cpp | |
1> ReliabilityLayer.cpp | |
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc | |
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\exception(361): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc | |
1> Generating Code... | |
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ========== |
Same issue here. How do you fix this? The above commenter says change the #incldue to #include and it will compile. That doesn't make any sense so I'm guessing he's missing some words there.
You have to change
#include <math.h>
to
#include <cmath>
in
CRakNetSlidingWindow.cpp
That will fix it. The previous commenter had the same thing written, in tags that Markdown parsed as a special thing. That's why it didn't show up
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know if you every resolved it but in VS 2015 the overloaded abs(double) method was removed from math.h. Change the #include <math.h> to #include and it will compile