Title: Compilation problems with VC++ V6...
I used for a long time OpenSsl (since SslEay 0.5) and mixed it
with MS VC++, ATL, MFC and STL.. I also make an exetensive use
of C++ domain name to partion my numerous libraries. 
 
For the first of your problems, I just renamed the symbol in wincrypt.h.
 
For the RTL conflicts, tries to use the same RTL (MSVCRT,LIBCMTD,..).
 

Pierre De Boeck
Sr System Engineer
Mission Critical (Belgium)
Phone: +32 2 757 10 15  Fax: +32  2 759 276 0
email: [EMAIL PROTECTED]
                                      ///              
                                     (. .)          
---------------------------------oOO--(_)--OOo----------------------

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Neil Hague
Sent: Friday, October 08, 1999 12:14 PM
To: '[EMAIL PROTECTED]'
Subject: Compilation problems with VC++ V6...

I'm currently having some problems compiling the OpenSSL libraries into my project.  I'm using VC++ V6 on NT4 to produce an ATL COM project.  However, there seems to be some conflicts between the OpenSSL libraries and those supplied by Microsoft.

Firstly there appears to be some redefinitions of items appearing in WINCRYPT.H

e.g.
//+-------------------------------------------------------------------------
//  Predefined PKCS #7 data structures that can be encoded / decoded.
//--------------------------------------------------------------------------
#define PKCS7_SIGNER_INFO                   ((LPCSTR) 500)

The symbol PKCS7_SIGNER_INFO is used in the OpenSSL code, but more worrying after commenting these lines out of the WINCRYPT header file I get redefinition errors from the linker:-

Generating Code...
Linking...
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _sprintf already defined in LIBCMTD.lib(sprintf.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBCMTD.lib(strncpy.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in LIBCMTD.lib(isctype.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in LIBCMTD.lib(fclose.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fflush already defined in LIBCMTD.lib(fflush.obj)
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _sprintf already defined in LIBCMTD.lib(sprintf.obj); second definition ignored

MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _strncpy already defined in LIBCMTD.lib(strncpy.obj); second definition ignored

MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __isctype already defined in LIBCMTD.lib(isctype.obj); second definition ignored

MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _fclose already defined in LIBCMTD.lib(fclose.obj); second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _fflush already defined in LIBCMTD.lib(fflush.obj); second definition ignored
   Creating library Debug/SecServ.lib and object Debug/SecServ.exp
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/SecServ.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

SecServ.dll - 6 error(s), 7 warning(s)

I've tried ignoring these libraries but they are needed elsewhere so that's not a solution.  Is anyone experiencing a similar problem and more importantly does anyone know what's causing it and how to fix it?

------------------------------------------------
Neil Hague
Software Engineer
JSB Software Technologies Ltd,
Riverside,
Mountbatten Way,
Congleton,
Cheshire,
CW12 1DY
Email: [EMAIL PROTECTED]
------------------------------------------------



****************************************************************************
This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of JSB.

If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please contact the sender.
****************************************************************************
BEGIN:VCARD
VERSION:2.1
N:De Boeck;Pierre;;;
FN:Pierre De Boeck
ORG:Mission Critical
TITLE:Sr System Engineer
TEL;WORK;VOICE:+32 (2) 757.10.15
TEL;HOME;VOICE:+32 2 7594496
TEL;WORK;FAX:+32 2 759 27 60
ADR;WORK:;;Avenue Claire 27;Waterloo;;1410;Belgium
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Avenue Claire 27=0D=0AWaterloo,  1410=0D=0ABelgium
ADR;HOME:;;Dekenijstraat 21 BUS;;6;;Belgium
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Dekenijstraat 21 BUS=0D=0A, 6 =0D=0ABelgium
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:19990421T075946Z
END:VCARD

smime.p7s

Reply via email to