You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got it to work by adding -pthread to the gcc arguments:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a388531..c9389aa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,9 @@ SET(SRC "${F2F_PATH}/src")
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${F2F_PATH}/bin")
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${F2F_PATH}/lib")
+# On ubuntu 9.04, I needed this or I got complaints about unable to link to pthreads. ~Tims
+set(CMAKE_CXX_FLAGS "-pthread")
+
# binaries get installed here
SET(CMAKE_INSTALL_PREFIX "/usr/local/")
The answer ahead is correct and also if you want to append into your CMAKE_CXX_FLAGS (not reset) you can do this also:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
On ubuntu 9.04. I went through building playdar etc etc, right debs and such.
During the make stage, I getting linking errors building main.cpp.
The text was updated successfully, but these errors were encountered: