Problems with standard functions and pthread in CLion
Completed
Configuration : MacOS Mojave (10.14.6)
CLion 2020.1
Build #CL-201.6668.126, built on April 9, 2020
Licensed to retracted LLC
Runtime version: 11.0.6+8-b765.25 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1987M
Cores: 4
Registry: run.processes.with.pty=TRUE
I have the following settings in my CmakeLists.txt
cmake_minimum_required(VERSION 3.16)
project(src)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS -pthread)
I am seeing various minor errors in my project, which I have listed below.
- Can't seem to recognize pthread functions. I keep seeing : can't resolve pthread_detach(), pthread_self(). However I am able to see pthread_t
- std::bind cannot be recognized (no matching function)
- std::pair (ambigious call)
- sem_init is not recognized

Please sign in to leave a comment.
Hello!
Please send a simple project with which the issues can be reproduced to clion-support at jetbrains.com.