Layla,
To
link in the ssl libraries using VC++ IDE do the following:
"Project->Settings->Link tab->Object/library modules:" in the end of
the list of libs add the two OpenSSL libraries "libeay32.lib
ssleay32.lib".
I hope
this helps.
--Anuj
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Layla
Sent: Wednesday, July 28, 2004 1:24 AM
To: [EMAIL PROTECTED]
Subject: RE: Linking Error.David,Thanks for responding. "didn't work" is actually missing a word :), what i meant to say is "when that didn't work" in reference to the specified path.You're right, I can compile, its linking that is giving me an error."You have told the linker where the libraries are, but you didn't actually link them in."-So how can I actually link the library?Note: As I said before I'm using VC++ 6, therefore I'm compiling and linking using GUI not from the command line, would that be an issue?-In the INSTALL file, I couldn't find reference to creating an environment variable that points to the root directory of OpenSSL, and I'm sure that I've read about this in one of the sites. Could this be the cause of my problem?Your help is highly appreciated.Layla.
David Schwartz <[EMAIL PROTECTED]> wrote:
> 1) D:\Documents and Settings\Administrator\My
Documents\openssl-0.9.7d\inc32
> this is the directory where OpenSSL was extracted to. when didn't work I
tried:
What does "didn't work" mean?
> 2) D:\openssl\include
> this is the directory which I have created and copied to the files as
instructed in > the installation steps in Install.win32 file.
> Likewise on the Link pane, in the input category, I added the additional
library
> path as follows:
> 1) D:\Documents and Settings\Administrator\My
Documents\openssl-0.9.7d\out32dll
> this is the directory where OpenSSL was extracted to, again when that
didn't work I > tried:
What does "didn't work" mean?
> 2) D:\openssl\lib
> this directory which I have created during the installation steps
holds the
> following t wo files:
> - libeay32
< - ssleay32
> Upon linking I get the following error message for EACH of the OpenSSL
functions:
> "unresolved external symbol _SSL_CTX_free"
If you got to linking, then you must have compiled. Which means your
include settings are probably fine.
> WHAT am I doing wrong?! Please help.
You are not linking to the OpenSSL libraries. You are including the header
files, which is why compiling is (I think) working. You have told the linker
where the libraries are, but you didn't actually link them in.
DS
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!