Somehow, I got it solved. Here is the version of .pro file for CryptLib with which built library is linkable.

Qt Code:
  1. QT -= core gui
  2. QMAKE_CFLAGS += /Zc:wchar_t /GL
  3.  
  4. TEMPLATE = lib
  5. TARGET = cryptlib
  6.  
  7. Release:DESTDIR = ./Release
  8. Debug:DESTDIR = ./Debug
  9.  
  10. CONFIG += staticlib
  11. DEFINES += _USING_V110_SDK71_ WINVER=0x0501 WIN32 _WINDOWS _MBCS USE_PRECOMPILED_HEADERS
  12. DEFINES -= UNICODE
  13.  
  14. DEPENDPATH += .
  15.  
  16. include(CryptoPP.pri)
To copy to clipboard, switch view to plain text mode 

So, all I did is added **USE_PRECOMPILED_HEADERS** to DEFINES and removed **PRECOMPILED_HEADER_FILE = pch.h**. I do not know how it actually helped, but it helped.