Thank-you Rob! Changing the Openssl to /MT worked tickety-boo. (compiling my app single threaded didn't work but as long as something did, I'm happy).
Thanks again for the help, -lee > -----Original Message----- > From: Neff Robert A [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 12, 2001 11:00 AM > To: '[EMAIL PROTECTED]' > Subject: RE: Link errors > > > You have most likely defined the /MT switch for VC++. This > causes your app > to use the multithreaded STATIC library. The OpenSSL default > uses /MD to > build itself. Either try recompiling your app with /MD or > edit the OpenSSL > make files and change the /MD switch to /MT for the compiler > flags. Read > the help file in VC++ regarding these compiler options to > clarify what is > occurring at your end. > > FYI - MSVCRT.DLL is the C Run-Time that is either included > with the OS or > must be shipped by your app (it is a redistributable). Be > aware of version > conflicts due to commercial apps that ship with this file and dump it > somewhere along your %PATH%. > > Hope that helps! > Rob > > -----Original Message----- > From: Dilkie, Lee [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 12, 2001 9:34 AM > To: '[EMAIL PROTECTED]' > Subject: Link errors > > > Don't know if the dev list is the right place for this > question... please > repost if it isn't. > > I'm trying to build a static library on win32 (using > ms\nt.mak) and while > that succeeds just fine, when I link the ssleay32.lib and > libeay32.lib(combined, about 2.7 Mbytes) to my application, I > get linker > errors. See below. > > I've tried excluding certain libraries but the problem seems > to snowball and > get worse. Anyone have an ideas to point me in the right direction? > > (my app links fine, BTW, when I use the DLL version of the > library, it's > just that I don't want to distribute the DLLs) > > Thanks in advance, > > -Lee > > > > Linking... > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _time already defined in > LIBCMT.lib(time.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncmp already defined in > LIBCMT.lib(strncmp.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in > LIBCMT.lib(memmove.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in > LIBCMT.lib(strncpy.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strchr already defined in > LIBCMT.lib(strchr.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in > LIBCMT.lib(isctype.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _sprintf already defined in > LIBCMT.lib(sprintf.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fopen already defined in > LIBCMT.lib(fopen.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in > LIBCMT.lib(fclose.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fwrite already defined in > LIBCMT.lib(fwrite.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fflush already defined in > LIBCMT.lib(fflush.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: __setmode already defined in > LIBCMT.lib(setmode.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _ftell already defined in > LIBCMT.lib(ftell.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fseek already defined in > LIBCMT.lib(fseek.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _localtime already defined in > LIBCMT.lib(localtim.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _getenv already defined in > LIBCMT.lib(getenv.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _gmtime already defined in > LIBCMT.lib(gmtime.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _tolower already defined in > LIBCMT.lib(tolower.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in > LIBCMT.lib(free.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in > LIBCMT.lib(realloc.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _signal already defined in > LIBCMT.lib(winsig.obj) > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strtoul already defined in > LIBCMT.lib(strtol.obj) > LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with > use of other > libs; use /NODEFAULTLIB:library > Telnet__/Telnet.exe : fatal error LNK1169: one or more > multiply defined > symbols found > Error executing link.exe. > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > Development Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] > ***************************************************************** > DISCLAIMER: The information contained in this e-mail may be > confidential > and is intended solely for the use of the named addressee. > Access, copying > or re-use of the e-mail or any information contained therein > by any other > person is not authorized. If you are not the intended > recipient please > notify us immediately by returning the e-mail to the originator. > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > Development Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
