Darknet: cannot open inlcude file pthread.h error in VS 2015

Created on 25 Jan 2018  路  2Comments  路  Source: AlexeyAB/darknet

Cloned git repository on Jan 25,2017 - master. Getting below error.

Severity    Code    Description Project File    Line    Suppression State
Error   C1083   Cannot open include file: 'pthread.h': No such file or directory    darknet d:\sai\darknet\src\data.h   3   

Most helpful comment

Setting include path to ....\3rdparty\include worked for me

All 2 comments

  • Try to update code from this repo, today there were made some fixes
  • Check is there file pthread.h in the d:\sai\darknet\3rdparty\include\
  • What file do you compile, is it darknet.sln?
  • Try to check path to the pthread.h in MSVS 2015
    (right click on project) -> properties -> C/C++ -> General -> Additional Include Directories, put here:
    C:\opencv_3.0\opencv\build\include;..\..\3rdparty\include;%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir);$(cudnn)\include

Setting include path to ....\3rdparty\include worked for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zihaozhang9 picture zihaozhang9  路  3Comments

Greta-A picture Greta-A  路  3Comments

HanSeYeong picture HanSeYeong  路  3Comments

Cipusha picture Cipusha  路  3Comments

kebundsc picture kebundsc  路  3Comments