Ha... I went to the GCC documentation and found out that -llibrary actually looks for a file named liblibrary.a

That means the libraries have to be named liblibeay32.a and libssleay32.a for the linker to find them.

Now it compiles. Whew

CG