I am trying to understand how my makefile works and have come accross the following command:
g++ -g -Wall -O3 -Wno-unused-function -Wno-unused-variable -O0 -std=c++11 runAlgo.cpp bfs.cpp Node.cpp distribution.cpp resultSet.cpp -include 8puzzle.c -o 8puzzle.bfs
What does the -include part mean?
According to man gcc:
So in your case content of
8puzzle.c
is added at the beginning ofrunAlgo.cpp
.You can check it using
-save-temps
option and explorerunAlgo.ii
preprocessed file.