src/Makefile.am
行#17にバグがあります。
swin-adventure_SOURCES = src/main.cc
本当に読む必要があります:
swin-adventure_SOURCES = main.cc
すでにsrc/ディレクトリにいるので(src / src /サブフォルダがない場合)
_SOURCES variabesで特殊文字を使用しているため、別のバグがあります。swin-adventure_SOURCES
禁止-
文字があります。それを正規化してみてくださいswin_adventure_SOURCES
最後に、値をbin_PROGRAMS
複数回(そして毎回同じ値)に割り当てようとしているので、それを避けてください。
何かのようなもの:
## Additional flags to pass to aclocal when it is invoked automatically at
## make time. The ${ACLOCAL_FLAGS} variable is picked up from the environment
## to provide a way for the user to supply additional arguments.
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
## Define an executable target "swin-adventure", which will be installed into the
## directory named by the predefined variable $(bindir).
bin_PROGRAMS = swin-adventure
## Define the list of source files for the "swin-adventure" target. The file
## extension .cc is recognized by Automake, and causes it to produce rules
## which invoke the C++ compiler to produce an object file (.o) from each
## source file. The ## header files (.h) do not result in object files by
## themselves, but will be included in distribution archives of the project.
swin_adventure_SOURCES = main.cc