Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Linker Error when using openssl

Linker Error when using openssl

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GeraldAT
    wrote on last edited by
    #1

    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 http://slproweb.com/products/Win32OpenSSL.html.
    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
    win32{
    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.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MementoMori
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved