peter1591 / hearthstone-ai

A Hearthstone AI based on Monte Carlo tree search and neural nets written in modern C++.
302 stars 49 forks source link

run 'make' under generate_train_data failed #104

Closed Yang-HangWA closed 5 years ago

Yang-HangWA commented 5 years ago

I try to generate data for training, and I clone the project in an environment of ubuntu. The output message as follow:

g++ -std=c++17 -I../../../../engine/include -I../../../../judge/include -I../../../../agents/include -I../../../../agents/test -I../../../../third_party/jsoncpp/include -I../../../../third_party/tiny-dnn -ggdb -O3 -march=native -c ../../../../third_party/jsoncpp/src/json_value.cpp -o ../../../../third_party/jsoncpp/src/json_value.o
g++ -std=c++17 -I../../../../engine/include -I../../../../judge/include -I../../../../agents/include -I../../../../agents/test -I../../../../third_party/jsoncpp/include -I../../../../third_party/tiny-dnn -ggdb -O3 -march=native -c ../../../../third_party/jsoncpp/src/json_reader.cpp -o ../../../../third_party/jsoncpp/src/json_reader.o
g++ -std=c++17 -I../../../../engine/include -I../../../../judge/include -I../../../../agents/include -I../../../../agents/test -I../../../../third_party/jsoncpp/include -I../../../../third_party/tiny-dnn -ggdb -O3 -march=native -c ../../../../third_party/jsoncpp/src/json_writer.cpp -o ../../../../third_party/jsoncpp/src/json_writer.o
g++ -std=c++17 -I../../../../engine/include -I../../../../judge/include -I../../../../agents/include -I../../../../agents/test -I../../../../third_party/jsoncpp/include -I../../../../third_party/tiny-dnn -ggdb -O3 -march=native -c ../../../../agents/src/neural_net/NeuralNetwork.cpp -o ../../../../agents/src/neural_net/NeuralNetwork.o
g++ -std=c++17 -I../../../../engine/include -I../../../../judge/include -I../../../../agents/include -I../../../../agents/test -I../../../../third_party/jsoncpp/include -I../../../../third_party/tiny-dnn -ggdb -O3 -march=native -Wall -Wextra -Wpedantic -Wno-implicit-fallthrough -Wno-unused-parameter -Werror -Weffc++ -c ../../../../agents/test/CardDispatcher.cpp -o ../../../../agents/test/CardDispatcher.o
g++ -std=c++17 -I../../../../engine/include -I../../../../judge/include -I../../../../agents/include -I../../../../agents/test -I../../../../third_party/jsoncpp/include -I../../../../third_party/tiny-dnn -ggdb -O3 -march=native -Wall -Wextra -Wpedantic -Wno-implicit-fallthrough -Wno-unused-parameter -Werror -Weffc++ -c ../../../../agents/test/TestStateBuilder.cpp -o ../../../../agents/test/TestStateBuilder.o
g++ -std=c++17 -I../../../../engine/include -I../../../../judge/include -I../../../../agents/include -I../../../../agents/test -I../../../../third_party/jsoncpp/include -I../../../../third_party/tiny-dnn -ggdb -O3 -march=native -Wall -Wextra -Wpedantic -Wno-implicit-fallthrough -Wno-unused-parameter -Werror -Weffc++ -c ../../../../agents/train/src/GenerateTrainData.cpp -o ../../../../agents/train/src/GenerateTrainData.o
In file included from ../../../../agents/include/MCTS/selection/EdgeAddon.h:6:0,
                 from ../../../../agents/include/MCTS/selection/TreeNodeAddon.h:6,
                 from ../../../../agents/include/MCTS/selection/TreeNode.h:7,
                 from ../../../../agents/include/MCTS/policy/Selection.h:6,
                 from ../../../../agents/include/MCTS/SOMCTS.h:8,
                 from ../../../../agents/include/MCTS/MOMCTS.h:3,
                 from ../../../../agents/include/agents/MCTSAgent.h:10,
                 from ../../../../agents/train/src/GenerateTrainData.cpp:13:
../../../../agents/include/MCTS/Config.h: In constructor ‘mcts::Config::Config()’:
../../../../agents/include/MCTS/Config.h:54:3: error: ‘mcts::Config::neural_net_is_random_’ should be initialized in the member initialization list [-Werror=effc++]
   Config() : neural_net_path_() {}
   ^~~~~~
cc1plus: all warnings being treated as errors
Makefile:79: recipe for target '../../../../agents/train/src/GenerateTrainData.o' failed
make: *** [../../../../agents/train/src/GenerateTrainData.o] Error 1