Hi,

Use IMPLIB on the OpenSSL Dlls (e.g implib.exe -a libeay32.lib libeay32.dll) in order to create OMF export libraries instead of the COFF ones produced by VC++.
With them, the link will be successful.

Cheers,
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr

On 12/23/2010 11:30 PM, hpenaguz...@aim.com wrote:
I'm going to try that. In the mean time I also tried gcc and MinGW and both work fine, but I would like to have it together in Borland since it is a part of a project. The other problem I have is that it doesn't work with <string> so I had to use Qt. Here is the test code, which is very simple just to make sure everything works. I'm working with OpenSSL 1.0.0c
I included libraries libeay32.lib and ssleay32.lib into the project.
#include <stdio.h>
// Cabeceras OpenSSL
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
int main(int argc,char ** argv){
    // Iniciando OpenSSL
    SSL_load_error_strings();
    ERR_load_BIO_strings();
    OpenSSL_add_all_algorithms();
    printf("Hola,  mundo de OpenSSL\n");
    return 0;
}
Here is the linker error, I got using dowloaded version with Borland 5.
[Linker Error] 'C:\OPENSSL-WIN32\LIB\LIBEAY32.LIB' contains invalid OMF record, type 0x21 (possibly COFF) I thought I was having this error since I couldn't built it with borland, that's why I was asking Building vs Downloaded, but then I make it work with MinGW.
-----Original Message-----
From: Ryan Pfeifle <r...@vpi-corp.com>
To: openssl-users <openssl-users@openssl.org>
Sent: Wed, Dec 22, 2010 4:21 pm
Subject: RE: Building OpenSSL vs Downloaded

I use the precompiled DLLs provided by http://www.slproweb.com/products/Win32OpenSSL.html. I do not recompile OpenSSL myself, though I do have the source code installed for reference.


Ryan Pfeifle
Sr. Programmer
Voice Print International, Inc.
<http://www.vpi-corp.com/>
*Immediate Results. Unmatched Value.* <http://www.vpi-corp.com/Value>^TM
*Tel: *1.805.389.5200 x5297
*Fax: *N/A
*Email: *...@vpi-corp.com <mailto:r...@vpi-corp.com>
*Web:* www.VPI-corp.com <http://www.vpi-corp.com/>
Experience the***VPI Value Advantage <http://www.vpi-corp.com/ValueAdvantage>*^TM
^
The information transmitted in this message is intended only for the addressee and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this material from any computer. *From:*owner-openssl-us...@openssl.org <mailto:owner-openssl-us...@openssl.org> [mailto:owner-openssl-us...@openssl.org <mailto:owner-openssl-us...@openssl.org?>] *On Behalf Of *hpenaguz...@aim.com <mailto:hpenaguz...@aim.com>
*Sent:* Wednesday, December 22, 2010 10:35 AM
*To:* openssl-users@openssl.org <mailto:openssl-users@openssl.org>
*Subject:* Re: Building OpenSSL vs Downloaded
May I ask which download version are you using?, I tried several and couldn't build it and neither use it with Borland, I got a linker error.
Thanks.
-----Original Message-----
From: Ryan Pfeifle <r...@vpi-corp.com <mailto:r...@vpi-corp.com>>
To: openssl-users <openssl-users@openssl.org <mailto:openssl-users@openssl.org>>
Sent: Tue, Dec 21, 2010 4:08 am
Subject: RE: Building OpenSSL vs Downloaded
You do not need to build the library unless you want to customize it. If you do compile it, it can be used with other compilers. I use the downloaded version with Borland C++Builder 5 and 6, though it was originally built with VC++, and it works fine.
Ryan Pfeifle
Sr. Programmer
Voice Print International, Inc.
<http://www.vpi-corp.com/>
*Immediate Results. Unmatched Value.* <http://www.vpi-corp.com/Value>^TM
*Tel: *1.805.389.5200 x5297
*Fax: *N/A
*Email: *...@vpi-corp.com_ <mailto:r...@vpi-corp.com>
*Web:*_www.VPI-corp.com_ <http://www.vpi-corp.com/>
Experience the***VPI Value Advantage <http://www.vpi-corp.com/ValueAdvantage>*^TM The information transmitted in this message is intended only for the addressee and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this material from any computer. *From:*_owner-openssl-us...@openssl.org_ <mailto:owner-openssl-us...@openssl.org> [_mailto:owner-openssl-us...@openssl.org_ <mailto:owner-openssl-us...@openssl.org?>] *On Behalf Of *_hpenaguz...@aim.com_ <mailto:hpenaguz...@aim.com>
*Sent:* Friday, December 17, 2010 6:59 PM
*To:* _openssl-us...@openssl.org_ <mailto:openssl-users@openssl.org>
*Subject:* Building OpenSSL vs Downloaded
Have two questions:
1) Is it mandatory to build the OpenSSL library in order to use the functionality provided by OpenSSL?, or is it possible to use it with the OpenSSL-Win32 library I downloaded. 2) If I build the OpenSSL library with one compiler is it possible to use with another compiler?, for instance I'm have Borland ver. 5 and 6 but can get one program compiled using OpenSSL programs and libraries, besides it doesn't work with <string> so I had to start doing some of the programing in QT. Is this possible?
Thank

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to