Results 1 to 4 of 4

Thread: Open SSL Linking

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Lightbulb Open SSL Linking

    Hello everybody.

    I've do have some issue's compiling my application under mingw32-make.exe, The follow errors appears:

    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o ..\..\test.exe object_script.test.Release -L"c:\Qt\4.3.4\lib" -lmingw32 -lqtmain release\test_res.o -LC:\OpenSSL\lib\MinGW -Llibeay32.a -Lssleay32.a -L../libtest/release -L../libcrypt/release -L../libidn/release -ltest -lcrypt -lidn -lgdi32 -lQtXml4 -lQtGui4 -lQtNetwork4 -lQtCore4
    ./release\sslsocket.o(.text+0x4db):sslsocket.cpp: undefined reference to `SSL_free'
    ./release\sslsocket.o(.text+0x64b):sslsocket.cpp: undefined reference to `SSL_free'
    ./release\sslsocket.o(.text+0x7cb):sslsocket.cpp: undefined reference to `SSL_free'
    ./release\sslsocket.o(.text+0x8ce):sslsocket.cpp: undefined reference to `SSL_new'
    ./release\sslsocket.o(.text+0x8d9):sslsocket.cpp: undefined reference to `BIO_s_mem'
    ./release\sslsocket.o(.text+0x8e1):sslsocket.cpp: undefined reference to `BIO_new'
    ./release\sslsocket.o(.text+0x8ec):sslsocket.cpp: undefined reference to `BIO_s_mem'
    ./release\sslsocket.o(.text+0x8f4):sslsocket.cpp: undefined reference to `BIO_new'
    ./release\sslsocket.o(.text+0x919):sslsocket.cpp: undefined reference to `SSL_set_bio'
    ./release\sslsocket.o(.text+0x9d4):sslsocket.cpp: undefined reference to `SSL_pending'
    ./release\sslsocket.o(.text+0x9f6):sslsocket.cpp: undefined reference to `SSL_read'
    ./release\sslsocket.o(.text+0xa63):sslsocket.cpp: undefined reference to `SSL_get_error'
    ./release\sslsocket.o(.text+0xaab):sslsocket.cpp: undefined reference to `BIO_read'
    ./release\sslsocket.o(.text+0xae8):sslsocket.cpp: undefined reference to `BIO_ctrl'
    ./release\sslsocket.o(.text+0xb0f):sslsocket.cpp: undefined reference to `SSL_connect'
    ./release\sslsocket.o(.text+0xbe8):sslsocket.cpp: undefined reference to `SSL_read'
    ./release\sslsocket.o(.text+0xc09):sslsocket.cpp: undefined reference to `SSL_write'
    ./release\sslsocket.o(.text+0xc26):sslsocket.cpp: undefined reference to `SSL_shutdown'
    ./release\sslsocket.o(.text+0xdf2):sslsocket.cpp: undefined reference to `BIO_write'
    ./release\sslsocket.o(.text+0xf05):sslsocket.cpp: undefined reference to `SSL_library_init'
    ./release\sslsocket.o(.text+0xf0a):sslsocket.cpp: undefined reference to `SSL_load_error_strings'
    ./release\sslsocket.o(.text+0xf0f):sslsocket.cpp: undefined reference to `TLSv1_client_method'
    ./release\sslsocket.o(.text+0xf17):sslsocket.cpp: undefined reference to `SSL_CTX_new'
    ./release\sslsocket.o(.text+0xf39):sslsocket.cpp: undefined reference to `SSL_CTX_free'
    collect2: ld returned 1 exit status
    mingw32-make[3]: *** [..\..\test.exe] Error 1
    mingw32-make[3]: Leaving directory `C:/Documents and Settings/Rick/Bureaublad/test/src/test'
    mingw32-make[2]: *** [release] Error 2
    mingw32-make[2]: Leaving directory `C:/Documents and Settings/Rick/Bureaublad/test/src/test'
    mingw32-make[1]: *** [sub-test-make_default] Error 2
    mingw32-make[1]: Leaving directory `C:/Documents and Settings/Rick/Bureaublad/test/src'
    mingw32-make: *** [sub-src-make_default] Error 2
    The file where the mingw32-make includes appears:
    Qt Code:
    1. win32 {
    2. SOURCES += test/ssl_win.cpp
    3. INCLUDEPATH += "C:\OpenSSL\include"
    4. LIBS += -L"C:\OpenSSL\lib\MinGW"
    5. LIBS += -Llibeay32.a -Lssleay32.a
    6. }
    To copy to clipboard, switch view to plain text mode 

    I've uploaded both source files for research, Can anybody help me solving this errors?
    Attached Files Attached Files

Similar Threads

  1. Replies: 3
    Last Post: 7th October 2015, 19:43
  2. QTextBrowser: Cannot open
    By veda in forum Qt Programming
    Replies: 3
    Last Post: 27th December 2007, 12:05
  3. again Open Cascade + Qt 4.2.2 but detailed...
    By Shuchi Agrawal in forum Qt Programming
    Replies: 11
    Last Post: 1st February 2007, 07:03
  4. again Open Cascade + Qt 4.2.2 but detailed...
    By Shuchi Agrawal in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2007, 06:50
  5. Replies: 4
    Last Post: 20th February 2006, 09:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.