Somehow, I got it solved. Here is the version of .pro file for CryptLib with which built library is linkable.
QT -= core gui
QMAKE_CFLAGS += /Zc:wchar_t /GL
TEMPLATE = lib
TARGET = cryptlib
Release:DESTDIR = ./Release
Debug:DESTDIR = ./Debug
CONFIG += staticlib
DEFINES += _USING_V110_SDK71_ WINVER=0x0501 WIN32 _WINDOWS _MBCS USE_PRECOMPILED_HEADERS
DEFINES -= UNICODE
DEPENDPATH += .
include(CryptoPP.pri)
QT -= core gui
QMAKE_CFLAGS += /Zc:wchar_t /GL
TEMPLATE = lib
TARGET = cryptlib
Release:DESTDIR = ./Release
Debug:DESTDIR = ./Debug
CONFIG += staticlib
DEFINES += _USING_V110_SDK71_ WINVER=0x0501 WIN32 _WINDOWS _MBCS USE_PRECOMPILED_HEADERS
DEFINES -= UNICODE
DEPENDPATH += .
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.
Bookmarks