Locked History Attachments


Strange compiler errors

  1. error C3861: 'TryEnterCriticalSection': identifier not found

    • Qt headers seem to mess with the _WIN32_WINNT define such that the TryEnterCriticalSection is not declared anymore in winbase.h. Try to change your include order by moving the include statement of the header file of your View class (or QmitkFunctionality.h if the error occurs inside your View class) before any Qt inclusions.

  2. error C3861: 'TryEnterCriticalSection': identifier not found and first tip does not apply or help

    • The error also appeared in Non-Qt classes. Moving the Poco-header-includes to the very top helped. I guess it's not Qt that messes with defines but Poco. OR Poco and Qt just use the same defines