Possible Duplicate:
How to build OpenSSL with MinGW in WIndows?
I have downloaded the OpenSSL source (openssl-1.0.1c) from their website. I need to build/compile this source, so that I can use the same on Windows, MAC and Linux environments. I google’d and read some blogs, but nothing sounds useful for me. If anybody has worked or anybody has relevant knowledge please help me!
Compile once, use the same on all three different environments.
That’s not possible, and it’s not what cross compilation means. Cross-compiling means (for example), compiling for Windows while running in a Linux environment. It doesn’t mean compiling something that will run under both Linux and Windows.
There is no way to build a single executable, which can be used on all three operating systems.
You have to compile the library once for Windows, once for Linux and once for Mac.