Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0e7c315

Browse filesBrowse files
stasoidtordex
authored andcommitted
Fix linker error: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
1 parent c45a935 commit 0e7c315
Copy full SHA for 0e7c315

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎CMakeLists.txt

Copy file name to clipboardExpand all lines: CMakeLists.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
99
set(CMAKE_BUILD_TYPE "Release")
1010
endif()
1111

12+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
1213
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -DDEBUG -g")
1314
set(CMAKE_C_FLAGS_DEBUG "-O0 -DDEBUG -g")
1415
set(CMAKE_CXX_FLAGS_RELEASE "-O3")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.