davidlallen
Deity
I am compiling with Visual Studio 9.0 and I am not able to get everything working. I have run into several problems; can anybody suggest a solution? I am using refar's guide and the 3.19 makefile to compile pure vanilla BTS (3.19) first.
1. Makefile gives option /G7 but VS9 does not recognize it. Easy solution, delete /G7 from the Makefile.
2. Some files such as CvGame.cpp and CvGameInterface.cpp give errors due to a variable out of scope, like:
for (int i=0; i<5; i++) { ... do some stuff ... }
for (i=0; i<5; i++) { ... do some other stuff ... }
The second reference of i has no declaration since i went out of scope at the first close curly. This is true, but probably earlier compilers were not so picky. The solution to this one, via the microsoft website, is to add option /Zc:forscope- to the makefile. Also no problem.
I do not find any mention of forscope in this thread so it is not clear how anybody has gotten VS9 to work.
(EDIT: removed a user error to unclutter the thread ... and avoid looking stupid)
1. Makefile gives option /G7 but VS9 does not recognize it. Easy solution, delete /G7 from the Makefile.
2. Some files such as CvGame.cpp and CvGameInterface.cpp give errors due to a variable out of scope, like:
for (int i=0; i<5; i++) { ... do some stuff ... }
for (i=0; i<5; i++) { ... do some other stuff ... }
The second reference of i has no declaration since i went out of scope at the first close curly. This is true, but probably earlier compilers were not so picky. The solution to this one, via the microsoft website, is to add option /Zc:forscope- to the makefile. Also no problem.
I do not find any mention of forscope in this thread so it is not clear how anybody has gotten VS9 to work.
(EDIT: removed a user error to unclutter the thread ... and avoid looking stupid)