JayThomas
Warlord
I'm a little late to the party, but decided to give the SDK a try.
I've eliminated the warnings but kept getting undeclared identifier errors (6 of them, all in CvGame.cpp). This is odd since I have yet to do anything to the code.
Five of the undeclared identifiers were for() indexes and putting the int in the for() made those go away.
The last one is a problem (sorry, can't get the tabs to show up):
for (int iTeam2 = 0; iTeam2 < MAX_CIV_TEAMS; ++iTeam2)
{
if (iTeam != kPlayer.getTeam())
{
CvTeam& kTeam2 = GET_TEAM((TeamTypes)iTeam2);
if (kTeam2.isFullMember(eVoteSource))
{
if (!kTeam2.isAtWar(kPlayer.getTeam()) && kTeam2.canChangeWarPeace(kPlayer.getTeam()))
{
bAtWarWithEveryone = false;
break;
}
}
}
}
iTeam is undeclared in this scope. It is declared in previous for() loops as an index but is not in scope here.
I can't just declare it since I don't know what value to initialize it to since it is being used in a comparison statement.
I just find it odd that undeclared identifier errors could be generated at this point since no changes to the source have occured except for the project conversion process.
Any ideas?
Thanks
I've eliminated the warnings but kept getting undeclared identifier errors (6 of them, all in CvGame.cpp). This is odd since I have yet to do anything to the code.
Five of the undeclared identifiers were for() indexes and putting the int in the for() made those go away.
The last one is a problem (sorry, can't get the tabs to show up):
Spoiler :
for (int iTeam2 = 0; iTeam2 < MAX_CIV_TEAMS; ++iTeam2)
{
if (iTeam != kPlayer.getTeam())
{
CvTeam& kTeam2 = GET_TEAM((TeamTypes)iTeam2);
if (kTeam2.isFullMember(eVoteSource))
{
if (!kTeam2.isAtWar(kPlayer.getTeam()) && kTeam2.canChangeWarPeace(kPlayer.getTeam()))
{
bAtWarWithEveryone = false;
break;
}
}
}
}
iTeam is undeclared in this scope. It is declared in previous for() loops as an index but is not in scope here.
I can't just declare it since I don't know what value to initialize it to since it is being used in a comparison statement.
I just find it odd that undeclared identifier errors could be generated at this point since no changes to the source have occured except for the project conversion process.
Any ideas?
Thanks