Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
djp@ace:~/tmp/task$ make
[ 23%] Built target columns
[ 38%] Built target libshared
[ 54%] Built target task
[ 54%] Building CXX object src/commands/CMakeFiles/commands.dir/CmdHistory.cpp.o
/home/djp/tmp/task/src/commands/CmdHistory.cpp: In member function ‘void CmdHistoryBase<HistoryStrategy>::outputGraphical(std::__cxx11::string&)’:
/home/djp/tmp/task/src/commands/CmdHistory.cpp:72:52: error: no matching function for call to ‘Table::add(const char [31], bool, bool)’
view.add (STRING_CMD_GHISTORY_NUMBER, true, false); // Fixed.
^
In file included from /home/djp/tmp/task/src/commands/CmdHistory.h:32:0,
from /home/djp/tmp/task/src/commands/CmdHistory.cpp:28:
/home/djp/tmp/task/src/libshared/src/Table.h:38:8: note: candidate: void Table::add(const string&, bool)
void add (const std::string& col, bool alignLeft = true) { _columns.push_back (col); _align.push_back (alignLeft); }
^
/home/djp/tmp/task/src/libshared/src/Table.h:38:8: note: candidate expects 2 arguments, 3 provided
src/commands/CMakeFiles/commands.dir/build.make:686: recipe for target 'src/commands/CMakeFiles/commands.dir/CmdHistory.cpp.o' failed
make[2]: *** [src/commands/CMakeFiles/commands.dir/CmdHistory.cpp.o] Error 1
CMakeFiles/Makefile2:305: recipe for target 'src/commands/CMakeFiles/commands.dir/all' failed
make[1]: *** [src/commands/CMakeFiles/commands.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
@linuxcaffe

This comment has been minimized.

Copy link
Owner Author

@linuxcaffe linuxcaffe commented Mar 23, 2017

then this;

djp@ace:/tmp/task$ git pull --recurse-submodules
Fetching submodule src/libshared
Already up-to-date.
djp@ace:
/tmp/task$ cmake .
-- Configuring C++11
-- System: Linux
-- Looking for libshared
-- Found libshared
-- Looking for SHA1 references
-- Found SHA1 reference: d464398
-- Looking for GnuTLS
-- Looking for libuuid
-- Found libuuid
-- Configuring cmake.h
-- Configuring man pages
-- Configuring done
-- Generating done
-- Build files have been written to: /home/djp/tmp/task
djp@ace:~/tmp/task$ make
[ 23%] Built target columns
[ 38%] Built target libshared
[ 54%] Built target task
[ 54%] Building CXX object src/commands/CMakeFiles/commands.dir/CmdHistory.cpp.o
/home/djp/tmp/task/src/commands/CmdHistory.cpp: In member function ‘void CmdHistoryBase::outputGraphical(std::__cxx11::string&)’:
/home/djp/tmp/task/src/commands/CmdHistory.cpp:72:52: error: no matching function for call to ‘Table::add(const char [31], bool, bool)’
view.add (STRING_CMD_GHISTORY_NUMBER, true, false); // Fixed.
^
In file included from /home/djp/tmp/task/src/commands/CmdHistory.h:32:0,
from /home/djp/tmp/task/src/commands/CmdHistory.cpp:28:
/home/djp/tmp/task/src/libshared/src/Table.h:38:8: note: candidate: void Table::add(const string&, bool)
void add (const std::string& col, bool alignLeft = true) { _columns.push_back (col); _align.push_back (alignLeft); }
^
/home/djp/tmp/task/src/libshared/src/Table.h:38:8: note: candidate expects 2 arguments, 3 provided
src/commands/CMakeFiles/commands.dir/build.make:686: recipe for target 'src/commands/CMakeFiles/commands.dir/CmdHistory.cpp.o' failed
make[2]: *** [src/commands/CMakeFiles/commands.dir/CmdHistory.cpp.o] Error 1
CMakeFiles/Makefile2:305: recipe for target 'src/commands/CMakeFiles/commands.dir/all' failed
make[1]: *** [src/commands/CMakeFiles/commands.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.