1
votes

After many internet searches i am posting this question. I am trying to compile existing c++ code which involves openssl libraries. I was able to include openssl header files successfully in visual studio 2013. And also i am running the application on Windows 8.1 platform. During compilation, I am facing the below error:

LNK1104: cannot open file "libssl.obj"

I need to add libssl , libcrypto and ws2_32 in the linker properties. Somehow it is throwing the above error even though i include the libssl.a and libcrypto.a as well as ssleay32.lib and libeay32.lib !!!!!!!!!!

[Note] The same codebase compiles fine in MinGW by giving

g++ ***source-files***** -lssl -lcrypto -lpthread -lws2_32

Thanks for your valuable inputs.

1

1 Answers

2
votes

Probably you don't have libssl.obj compiled. Also make sure libssl.lib is in your PATH environment.