Closed
Description
Sparcraft build fails on my Xubuntu 15.10 system. I did the following:
sudo apt-get install freeglut3 freeglut3-dev libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl1.2-dev
# cd Sparcraft root
g++ -O3 source/*.cpp bwapidata/include/*.cpp source/glfont/*.cc -Ibwapidata/include -Isource/glfont -o SparCraft `sdl-config --cflags --libs` -lGL -lGLU -lSDL_image
and got a bunch of errors (pasted at the end because they're long).
Some of my system info:
$ uname -a
Linux xublap1510 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ gcc --version
gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010
Here's the error messages:
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AllPlayers.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AllPlayers.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/AllPlayers.cpp:31:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AllPlayers.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AlphaBetaSearch.h:5,
from source/AlphaBetaSearch.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AlphaBetaSearch.h:5,
from source/AlphaBetaSearch.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/AlphaBetaSearch.cpp:538:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AlphaBetaSearch.h:5,
from source/AlphaBetaSearch.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
source/Common.cpp:4:29: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
char SPARCRAFT_LOGFILE[100] { "sparcraft_error_log.txt" };
^
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Game.h:4,
from source/Game.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Game.h:4,
from source/Game.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Game.cpp:231:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Game.h:4,
from source/Game.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/GameState.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/GameState.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/GameState.cpp:1100:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/GameState.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/main.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/main.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/main.cpp:32:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/main.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/MoveArray.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
source/MoveArray.cpp: In member function ‘void SparCraft::MoveArray::shuffleMoveActions()’:
source/MoveArray.cpp:70:13: error: ‘random_shuffle’ is not a member of ‘std’
std::random_shuffle(&_moves[u][moveBegin], &_moves[u][moveEnd]);
^
source/MoveArray.cpp: In member function ‘void SparCraft::MoveArray::printCurrentMoveIndex()’:
source/MoveArray.cpp:88:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
printf("%d ", _currentMovesIndex[u]);
^
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_AlphaBeta.h:4,
from source/Player_AlphaBeta.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AlphaBeta.h:4,
from source/Player_AlphaBeta.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_AlphaBeta.cpp:49:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AlphaBeta.h:4,
from source/Player_AlphaBeta.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_AttackClosest.h:4,
from source/Player_AttackClosest.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackClosest.h:4,
from source/Player_AttackClosest.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_AttackClosest.cpp:78:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackClosest.h:4,
from source/Player_AttackClosest.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_AttackDPS.h:4,
from source/Player_AttackDPS.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackDPS.h:4,
from source/Player_AttackDPS.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_AttackDPS.cpp:78:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackDPS.h:4,
from source/Player_AttackDPS.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_AttackWeakest.h:4,
from source/Player_AttackWeakest.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackWeakest.h:4,
from source/Player_AttackWeakest.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_AttackWeakest.cpp:76:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackWeakest.h:4,
from source/Player_AttackWeakest.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_Cluster.h:4,
from source/Player_Cluster.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Cluster.h:4,
from source/Player_Cluster.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_Cluster.cpp:56:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Cluster.h:4,
from source/Player_Cluster.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player.cpp:19:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_Kiter.h:4,
from source/Player_Kiter.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Kiter.h:4,
from source/Player_Kiter.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_Kiter.cpp:99:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Kiter.h:4,
from source/Player_Kiter.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_KiterDPS.h:4,
from source/Player_KiterDPS.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_KiterDPS.h:4,
from source/Player_KiterDPS.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_KiterDPS.cpp:100:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_KiterDPS.h:4,
from source/Player_KiterDPS.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_Kiter_NOKDPS.h:4,
from source/Player_Kiter_NOKDPS.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Kiter_NOKDPS.h:4,
from source/Player_Kiter_NOKDPS.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_Kiter_NOKDPS.cpp:127:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Kiter_NOKDPS.h:4,
from source/Player_Kiter_NOKDPS.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_NOKDPS.h:4,
from source/Player_NOKDPS.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_NOKDPS.h:4,
from source/Player_NOKDPS.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_NOKDPS.cpp:100:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_NOKDPS.h:4,
from source/Player_NOKDPS.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_PortfolioGreedySearch.h:4,
from source/Player_PortfolioGreedySearch.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_PortfolioGreedySearch.h:4,
from source/Player_PortfolioGreedySearch.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_PortfolioGreedySearch.cpp:28:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_PortfolioGreedySearch.h:4,
from source/Player_PortfolioGreedySearch.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
source/PlayerProperties.cpp: In member function ‘void SparCraft::PlayerProperties::Capture(const BWAPI::Player&)’:
source/PlayerProperties.cpp:54:27: error: base operand of ‘->’ has non-pointer type ‘const BWAPI::Player’
upgradeLevel[i] = player->getUpgradeLevel(i);
^
source/PlayerProperties.cpp:59:28: error: base operand of ‘->’ has non-pointer type ‘const BWAPI::Player’
hasResearched[i] = player->hasResearched(i);
^
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_Random.h:4,
from source/Player_Random.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Random.h:4,
from source/Player_Random.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_Random.cpp:17:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Random.h:4,
from source/Player_Random.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_UCT.h:4,
from source/Player_UCT.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_UCT.h:4,
from source/Player_UCT.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_UCT.cpp:29:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_UCT.h:4,
from source/Player_UCT.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/PortfolioGreedySearch.h:4,
from source/PortfolioGreedySearch.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/PortfolioGreedySearch.h:4,
from source/PortfolioGreedySearch.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/PortfolioGreedySearch.cpp:165:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/PortfolioGreedySearch.h:4,
from source/PortfolioGreedySearch.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SearchExperiment.h:3,
from source/SearchExperiment.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SearchExperiment.h:3,
from source/SearchExperiment.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/SearchExperiment.cpp:955:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SearchExperiment.h:3,
from source/SearchExperiment.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SparCraft.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SparCraft.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/SparCraft.cpp:20:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SparCraft.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/TranspositionTable.h:5,
from source/TranspositionTable.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/TranspositionTable.h:5,
from source/TranspositionTable.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/TranspositionTable.cpp:210:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/TranspositionTable.h:5,
from source/TranspositionTable.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/TutorialCode.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/TutorialCode.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/TutorialCode.cpp:172:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/TutorialCode.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/UCTSearch.h:6,
from source/UCTSearch.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/UCTSearch.h:6,
from source/UCTSearch.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/UCTSearch.cpp:499:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/UCTSearch.h:6,
from source/UCTSearch.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/Unit.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
source/Unit.cpp: In member function ‘const string SparCraft::Unit::name() const’:
source/Unit.cpp:576:5: error: ‘replace’ is not a member of ‘std’
std::replace(n.begin(), n.end(), ' ', '_');
^
source/UnitProperties.cpp: In static member function ‘static void SparCraft::UnitProperties::Init()’:
source/UnitProperties.cpp:62:38: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for (const BWAPI::UnitType & type : BWAPI::UnitTypes::allUnitTypes())
^
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/UnitScriptData.h:4,
from source/UnitScriptData.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/UnitScriptData.h:4,
from source/UnitScriptData.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/UnitScriptData.cpp:89:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/UnitScriptData.h:4,
from source/UnitScriptData.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
source/WeaponProperties.cpp: In static member function ‘static void SparCraft::WeaponProperties::Init()’:
source/WeaponProperties.cpp:56:43: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for (const BWAPI::WeaponType & type : BWAPI::WeaponTypes::allWeaponTypes())
Metadata
Assignees
Labels
No labels