Ophiuchus wrote:
I fixed it by starting the Visual Studio installer and checking the "Windows 8.1 and Windows Phone 8.0/8.1 Tools" which installs the vc120 chain.
Afterwards for every project I manually changed the toolchain setting.
After switching branches and merging it seems it does not work anymore, getting strange compiler errors. Cleaning the working copy and redoing what I originally did, did not change anything.
e.g. for ClientUI.cpp I get
Code:
class ClientUI hat keinen Member "MessageBoxA"
occuring in line 945:
Code:
void ClientUI::MessageBox(const std::string& message, bool play_alert_sound/* = false*/) {
And that looks like totally normal code to me. Also googling didnt help.
I tried using cmake then, but that made even more headaches (finding the right parameters e.g.
Code:
cmake -G "Visual Studio 14 2015" -T v120 .
, not finding libraries during compile (e.g. looking for boost_filesystem.lib instead of boost_filesystem-vc120-mt-gd-1_58.lib), wanting a different kind of boost library for linking (e.g. boost_filesystem-vc120-mt-gd-1_58.lib instead of boost_filesystem-vc120-mt-1_58.lib)) and generally not looking in the correct folders for the libraries.
I usually don't work with the C++/cmake/MSVC usually, so all this is pretty new to me.
I again went cleaning the working copy and getting the same compiler errors. VS 2013 wrecked two of my installs, so I wont go that way. And I don't have a spare computer around only for compiling freeorion.