Possible Duplicate:
boost::asio ssl linking error
I am having issues with undefined symbols. My boost installation is fine as I have used it for other projects. I understand that I need OpenSSL installed, So installed it in the following way.
I then ran the following commands with VS2010 command prompt with the extracted OpenSSL source (most recent from openssl site) as the working directory.
perl Configure VC-WIN64A no-shared no-idea // I don't trust this.
ms\do_win64a
nmake -f ms\ntdll.mak
nmake -f ms\ntdll.mak install
nmake -f ms\nt.mak
nmake -f ms\nt.mak install
The source file is just the boost example. http://www.boost.org/doc/libs/1_52_0/doc/html/boost_asio/example/ssl/client.cpp
My VS2010 project is setup as follows.
C/C++ > General > Addition Include Directories
E:\libraries\boost_1_49_0 //as used in past projects
E:\usr\local\ssl\include //just installed
Linker > General > Addition Library Directories
E:\libraries\boost_1_49_0\stage\lib
E:\usr\local\ssl\lib
Linker > Input > Addition Directories
libeay32.lib
I thought that it might must have been boost tripping out. So I tried an SSL crypto example and that had undefined symbols.
Errors in a text file
OS is Windows 7 64Bit
I was trying to build a 32bit program with the 64 bit libs.
I changed the following from above to build the 64 bit version
perl Configure VC-WIN64A no-asm –prefix=\Dir\for\64\bit\ssl -DUNICODE -D_UNICODE
ms\do_win64a.bat
then nmake as normal