Log in

View Full Version : Compile Errors


blackdragonsdg
12-05-2014, 12:15 AM
Error 654 error C2668: 'std::to_string' : ambiguous call to overloaded function D:\Everquest\SVN\Source Code - GitHub\Server\zone\lua_parser.cpp 861 1 zone

1063 IntelliSense: PCH warning: header stop cannot be in a macro or #if block. An intellisense PCH file was not generated. d:\everquest\svn\source code - github\server\zone\lua_parser.cpp 38 1 zone

1064 IntelliSense: more than one instance of overloaded function "std::to_string" matches the argument list: d:\everquest\svn\source code - github\server\zone\lua_parser.cpp 861 18 zone

lerxst2112
12-05-2014, 01:38 AM
What version of Visual Studio?

Assuming it's this line:
zone_script += std::to_string(zone->GetInstanceVersion());
you can probably make it work by casting it to an unsigned int. I assume that was one of the candidates listed in the part of the error message you didn't paste. I tried using to_string on an unsigned short in Visual Studio 2013 and didn't have a problem.

demonstar55
12-05-2014, 02:38 AM
hmm to kill VS2010 or not ...

gibroni
12-05-2014, 04:39 PM
Same compile error and yes I'm still using vs2010.

No internet connection atm to get 2013.
Just been running an offline server at home. Take my laptop out
To a wWiFi spot to download any updates I need.

lerxst2112
12-05-2014, 05:14 PM
There's really no reason not to upgrade to the 2013 community edition when you can. Use the online install though, I tried the iso and it had a corrupted file on it.

blackdragonsdg
12-05-2014, 06:14 PM
Yes I was using VS2010 when I got those errors. I will check out 2013 community edition when I get time to tinker with it.