I have tried to build the simple SSL version of Mongoose (mongoose/examples/simplest_web_server_ssl) in Visual Studio 5 but I get 33 symbol link errors such as:
1>mongoose.obj : error LNK2001: unresolved external symbol _SSL_CTX_get_ex_data
1>mongoose.obj : error LNK2001: unresolved external symbol _SSL_CTX_set_cipher_list
1>mongoose.obj : error LNK2001: unresolved external symbol _SSL_CTX_ctrl.
I have installed OpenSSL (using ShiningLightProductions) and in the Project Properties have pointed to the include directory C:\Program Files\openssl\include and in the Linker I point to the additional library Directories: "C:\Program Files\openssl\lib";"C:\Program Files\openssl\lib\VC";"C:\Program Files\openssl\lib\VC\static", and the Linker Input I add the library file name (in the end I tried all the libraries that I found the functions in, (libssl_static.lib libssl.lib openssl.lib libssl64MD.lib libssl64MT.lib libssl64MD.lib libssl64MT.lib). However none of this works. I can see Visual Studio saying it is searching the library files but it never finds the functions. I used dumpbin to veryify that the functions were in the lib file and it has the same name (except for a preceding “_” which I think is due to the legitimate name “mangling”. I have also created a precompiled macro definition of MG_ENABLE_SSL to turn on SSL in the code.
I am running on Windows 7 and using Visual Studio 7.
Thanks for any suggestions, Curt