diff options
-rw-r--r-- | tools/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tools/ept-cat.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 33a4a6f..d3210f1 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,5 +1,6 @@ include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${TAGCOLL_INCLUDE_DIRS} ${WIBBLE_INCLUDE_DIRS} ) +add_definitions( --std=c++11 ) link_libraries( ept ) add_executable( ept-cat ept-cat.cpp ) diff --git a/tools/ept-cat.cpp b/tools/ept-cat.cpp index d5af2f6..df68682 100644 --- a/tools/ept-cat.cpp +++ b/tools/ept-cat.cpp @@ -1,5 +1,5 @@ #include <ept/apt/apt.h> -#include <ept/apt/apt.h> +#include <iostream> int summary = 0; @@ -10,7 +10,7 @@ int main( int argc, char **argv ) { Apt db; for (Apt::record_iterator i = db.recordBegin(); i != db.recordEnd(); ++i) - cout << *i << endl; - + cout << *i << endl; + return 0; } |