LINK : fatal error LNK1104: cannot open file 'pthread.lib'

142 views
Skip to first unread message

surendra allam

unread,
Nov 30, 2022, 1:49:43 PM11/30/22
to Caffe Users
Hello,

    I am trying to install Caffe on my windows machine with the environment as suggested at GitHub Caffe Windows branch, facing as an issue as shown below.

Any suggestions would be a great help.

""
Determining if the function pthread_create exists in the pthread failed with the following output:
Change Dir: C:/Users/Surendra Allam/Documents/caffe/build/CMakeFiles/CMakeScratch/TryCompile-ebh1r9

Run Build Command(s):C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe cmTC_44616.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=14.0 /v:m && Microsoft (R) Build Engine version 14.0.23107.0
Copyright (C) Microsoft Corporation. All rights reserved.

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23026 for x64
  Copyright (C) Microsoft Corporation.  All rights reserved.
 
  cl /c /Zi /W3 /WX- /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D CHECK_FUNCTION_EXISTS=pthread_create /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_44616.dir\Debug\\" /Fd"cmTC_44616.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "C:\Users\Surendra Allam\Documents\caffe\build\CMakeFiles\CMakeScratch\TryCompile-ebh1r9\CheckFunctionExists.c"
 
  CheckFunctionExists.c
LINK : fatal error LNK1104: cannot open file 'pthread.lib' [C:\Users\Surendra Allam\Documents\caffe\build\CMakeFiles\CMakeScratch\TryCompile-ebh1r9\cmTC_44616.vcxproj]


""
Reply all
Reply to author
Forward
0 new messages