Thread: Using OpenSSL with Dev-C++

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    10

    Using OpenSSL with Dev-C++

    How would I go about installing OpenSSL for Dev-C++? I've tried installing the source by using MinGW 5.0.0 and Dev-C++ beta (which didn't have MinGW already installed). I've tried installing the binary setup version and also the dev package version.

    But every time the compiler complains that there's an undefined reference to the functions.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,525
    You need to tell the linker what additional libraries to use, and where they're located (if they're not in the standard places).

    Typically, if your library is called libfoo.a, then you would pass the parameter -lfoo (that's minus and lower-case L)
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jul 2006
    Posts
    10
    I have four files in my lib folder: libeay32.def, ssleay32.def, libeay32.a and ssleay32.a. Adding -leay32 to my linker works fine but how would I add ssleay32.a?

    EDIT: Ok I figured I just had to add the pathname and the filename for that library. There's still a lot of undefined references but I can't see any related to OpenSSL. Thank you for the help Salem.
    Last edited by Smiley10; 07-08-2006 at 10:57 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 01:05 AM
  2. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  3. openssl on win2k
    By rzcodeman in forum Networking/Device Communication
    Replies: 4
    Last Post: 04-09-2004, 07:58 PM
  4. OpenSSL and Win32 SSL API :: SSL/TLS
    By kuphryn in forum Networking/Device Communication
    Replies: 0
    Last Post: 03-10-2004, 07:46 PM
  5. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 3
    Last Post: 03-08-2004, 08:47 PM