1. Of course the whole thing should build correctly without any modifications, as gabba said. 2. This algorithm file the error mentions is a system file if I'm not mistaken; clicking on it probably won't help as the error is completely somewhere else. If you post a patch/diff of your changes I could make a guess. Perhaps you are trying to implicitly convert some value, in which case one often needs to help the compiler via explicit conversion. Other than that, you can only narrow the real position down by commenting out code and/or looking at your changes. Basically the strategy described here http://forums.wesnoth.org/viewtopic.php?f=21&t=14859 - while that is for wml, wesnoth's extension language, it works for any programming language :) .
Cheers ----- Original Nachricht ---- Von: Gabriel Morin <[email protected]> An: dev-talk <[email protected]> Datum: 03.11.2012 05:11 Betreff: Re: [Wesnoth-dev] Problem compiling in Visual Studio > 2012/11/2 James Winkler <[email protected]> > > > I hope this is the right place for this. I'm trying to tweak Battle for > > Wesnoth and I'm having trouble compiling. I followed the steps at > > http://wiki.wesnoth.org/CompilingWesnothOnWindows, but I get the errors > > seen in the attached screenshot. I double-checked my PATH variable, my > > Include files, my Library files, and reset my computer, but I'm still > > getting these errors. The only file I've modified is attack.cpp. I'm > > using Visual Studio 2008 and I just downloaded the source code for > version > > 1.10.4 from http://wiki.wesnoth.org/Download#Stable_.281.8_branch.29 > yesterday. > > Did I miss a step, or is there something else I need to do? I'm a bit of > a > > novice with C++, so sorry if these are dumb questions... > > > > Thanks, > > James > > > > First thing to check: have you tried compiling the code without any > modification? It's important to succeed in that before changing anything. > > Otherwise, in the screenshot you posted the main problem seems to be with > an == operator. Double-click the error (it's #10 in your screenshot) in the > list and go to the detailed output, where you should be able to trace up > the cascade of errors and find the cause. > > If the problems with .pdb files persist, try a rebuild, see if the > mentioned .pdb files already exist and delete them, and check that the > files in your source tree don't have the windows read-only attribute. > > Hope this helps, drop by our irc channel #wesnoth-dev on freenode.net if > you need further help. > > Gabriel / gabba > > > -------------------------------- > > _______________________________________________ > Wesnoth-dev mailing list > [email protected] > https://mail.gna.org/listinfo/wesnoth-dev > _______________________________________________ Wesnoth-dev mailing list [email protected] https://mail.gna.org/listinfo/wesnoth-dev
