You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2020/11/13 12:46:00 UTC

[jira] [Created] (PROTON-2302) c_threaderciser does not build on Windows

Jiri Daněk created PROTON-2302:
----------------------------------

             Summary: c_threaderciser does not build on Windows
                 Key: PROTON-2302
                 URL: https://issues.apache.org/jira/browse/PROTON-2302
             Project: Qpid Proton
          Issue Type: Test
          Components: proton-c
    Affects Versions: proton-c-0.32.0
            Reporter: Jiri Daněk


{noformat}
D:\a\qpid-proton\qpid-proton\c\tests\threaderciser.c(98,84): warning C4013: 'pthread_self' undefined; assuming extern returning int [D:\a\qpid-proton\qpid-proton\BLD\c\tests\c-threaderciser.vcxproj]
threaderciser.obj : error LNK2019: unresolved external symbol pthread_self referenced in function debug_impl [D:\a\qpid-proton\qpid-proton\BLD\c\tests\c-threaderciser.vcxproj]
D:\a\qpid-proton\qpid-proton\BLD\c\tests\RelWithDebInfo\c-threaderciser.exe : fatal error LNK1120: 1 unresolved externals [D:\a\qpid-proton\qpid-proton\BLD\c\tests\c-threaderciser.vcxproj]
  Building Custom Rule D:/a/qpid-proton/qpid-proton/cpp/examples/CMakeLists.txt
{noformat}

* pthreads is not available on Windows, or maybe just pthread_self is not available
* some other threading library needs to be used;
** either a wrapper to use pthreads on unix, and whatever Windows uses on windows,
** or the threads.h in C11, if msvc supports that
** or write the test in cpp and use thread support from c++11



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org