From cb27bfd6f408adafa997689c263d8ef363ee5226 Mon Sep 17 00:00:00 2001 From: Lucas Campos Date: Tue, 1 Jan 2013 08:57:01 -0300 Subject: [PATCH 1/2] Added new include, cstddef. This is needed in order to be compilable under C++11 --- include/aicore/aicore.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/aicore/aicore.h b/include/aicore/aicore.h index 7fe82da..a12d0d3 100644 --- a/include/aicore/aicore.h +++ b/include/aicore/aicore.h @@ -86,3 +86,4 @@ #include "learning.h" #include "qlearning.h" +#include From 2b509cc86fd58909216fb28c0c114bec64dee949 Mon Sep 17 00:00:00 2001 From: Lucas Campos Date: Tue, 1 Jan 2013 09:01:19 -0300 Subject: [PATCH 2/2] CMake now adds lrt when linking. This was needed when linking on Linux, because of the clock_gettime function --- build/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index 10a53d5..97ffa70 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -39,6 +39,9 @@ add_library(aicore STATIC ${SRC}/demos/common/gl/app.cpp ${SRC}/demos/common/gl/main.cpp ) +IF(UNIX) + target_link_libraries(aicore -lrt) +ENDIF(UNIX) set(DEMO_DEPS aicore ${GLUT_LIBRARY} ${OPENGL_LIBRARY})