Ace, you must be using Visual Studio 2005 then. It's caused by failure to conform to standard C++ for-scope behaviour. You can actually compile the game with VS2005, but it will crash upon loading.
I'm not aware of a way to make Civ4 work with VS2005. To compile successfully, you just need to turn off for-loop conformance:
In that screen, the for loop conformance setting should be "no". That makes the SDK compile but BtS will crash as soon as you try to start a new game or load a save. And sadly I don't know anyone who has managed to get it working with 2005.
As I just upgraded to 3.17, I successfully compiled Solver's unofficial patch 0.19 after changing the maximum number of players to 40 and used it as DLL for GEM v5. Many thanks to Solver for providing me with the info how to compile it.
Seems to work just fine - I hope it's okay to post it. If you encounter any errors, please let me know, then I must have made some mistake compiling.
Best Regards,
Ace
Ace, that was with VS2003 after all, right?
Thanks!