Subject: Re: Linker error during compilation
Sorry for the delay, but her is the output:
$ make VERBOSE=1
/usr/local/Cellar/cmake/3.15.5/bin/cmake -S/Users/ingmar/src/maxr -B/Users/ingmar/src/maxr/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.15.5/bin/cmake -E cmake_progress_start /Users/ingmar/src/maxr/build/CMakeFiles /Users/ingmar/src/maxr/build/CMakeFiles/progress.marks
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 all
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/maxr.dir/build.make CMakeFiles/maxr.dir/depend
cd /Users/ingmar/src/maxr/build && /usr/local/Cellar/cmake/3.15.5/bin/cmake -E cmake_depends "Unix Makefiles" /Users/ingmar/src/maxr /Users/ingmar/src/maxr /Users/ingmar/src/maxr/build /Users/ingmar/src/maxr/build /Users/ingmar/src/maxr/build/CMakeFiles/maxr.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/maxr.dir/build.make CMakeFiles/maxr.dir/build
[ 1%] Building CXX object CMakeFiles/maxr.dir/src/ui/graphical/game/control/chatcommand/chatcommand.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++ -DHAVE_AUTOVERSION_H -I/Users/ingmar/src/maxr/src -I/Users/ingmar/src/maxr/build -I/usr/local/include/SDL2 -std=c++1y -stdlib=libc++ -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -o CMakeFiles/maxr.dir/src/ui/graphical/game/control/chatcommand/chatcommand.cpp.o -c /Users/ingmar/src/maxr/src/ui/graphical/game/control/chatcommand/chatcommand.cpp
In file included from /Users/ingmar/src/maxr/src/ui/graphical/game/control/chatcommand/chatcommand.cpp:20:
/Users/ingmar/src/maxr/src/ui/graphical/game/control/chatcommand/chatcommand.h:67:41: error: implicit instantiation of
undefined template 'cChatCommandParser<>'
return cChatCommandParser<NewArgument>(cChatCommandParser<>(std::move(*this)), NewArgument(std::forward<...
^
/Users/ingmar/src/maxr/src/ui/graphical/game/control/chatcommand/chatcommand.h:27:7: note: template is declared here
class cChatCommandParser;
^
/Users/ingmar/src/maxr/src/ui/graphical/game/control/chatcommand/chatcommand.h:74:76: error: implicit instantiation of
undefined template 'cChatCommandParser<>'
return std::make_unique<cChatCommandExecutorImpl<F>>(std::move(function), cChatCommandParser<>(std::move...
^
/Users/ingmar/src/maxr/src/ui/graphical/game/control/chatcommand/chatcommand.h:27:7: note: template is declared here
class cChatCommandParser;
^
2 errors generated.
make[2]: *** [CMakeFiles/maxr.dir/src/ui/graphical/game/control/chatcommand/chatcommand.cpp.o] Error 1
make[1]: *** [CMakeFiles/maxr.dir/all] Error 2
make: *** [all] Error 2
This is not gcc-9 anymore, but Apples gcc.
This post has been edited
1
times. Last edit on Feb 02, 2020 10:07 pm by MickeyKnox.