Open SSL Link Errors

I've been trying to build a simple openSSL code segment, using the rsa.h header file in MSVS2008 for quite some time now, but every time I try to build it, I get the following link error:

1
2
3
void test() {
   RSA * r = RSA_new();
}


error LNK2019: unresolved external symbol _RSA_new referenced in function "void __cdecl test(void)" (?test@@YAXXZ)

I have already added the libraries libeay32.lib and ssleay32.lib to the linker settings, those did not work, I then tried libeay32MD.lib and ssleay32MD.lib, and I'm still getting these link errors.

I installed openSSL using the binaries found here

http://www.slproweb.com/products/Win32OpenSSL.html

I downloaded the win64 binaries and installed them to my VC folder.

Any help would be appreciated, thanks.
hahaha, this is great.

I figured out what was wrong. I installed the WRONG version of openssl (x64) when I needed the (x32) version.

Anyways, this issue is solved, sorry for wasting thread space.
Topic archived. No new replies allowed.