Linker Error when using openssl

  • Hi,

    I have got a Qt 5.1.1 project where I want to verify a digital RSA signature using openssl. The error is that the linker cannot find any of the openssl functions. I have already tried the approaches mentioned in other threads.

    Compiler MSVC2012 32bit
    OS: Windows 7 x64

    I installed openssl using the package Win32 OpenSSL v1.0.1g from
    So the installation path of openssl is C:\OpenSSL-Win32

    I added openssl to the project
    TEMPLATE = app
    CONFIG += console
    CONFIG -= app_bundle
    CONFIG -= qt
    CONFIG += openssl-linked
    CONFIG += kqoauth crypto

    SOURCES += main.cpp

    QT += core gui network
    LIBS += -LC:/OpenSSL-Win32/lib -lubsec -lssleay32 -llibeay32
    INCLUDEPATH += C:/OpenSSL-Win32/include

    LIBS += -LC:/OpenSSL-Win32/lib -lubsec -lssleay32 -llibeay32
    INCLUDEPATH += C:/OpenSSL-Win32/include
    DEPENDPATH += C:/OpenSSL-Win32/include@

    The include seems to work.

  • try adding applink.c to your sources.
    You should find it inside the openssl folder in your system. Otherwise download the right package of openssl

Log in to reply