I am trying to compile the sample iphone openssl created by x2on here:
https://github.com/x2on/OpenSSL-for-iPhone
I get the following errors when trying to compile in Xcode 4.3.3:
Undefined symbols for architecture i386:
"_MD5", referenced from: -[ViewController calculateMD5:] in ViewController.o "_SHA256_Init", referenced from: -[ViewController calculateSHA256:] in ViewController.o "_SHA256_Update", referenced from: -[ViewController calculateSHA256:] in ViewController.o "_SHA256_Final", referenced from: -[ViewController calculateSHA256:] in ViewController.old: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I’ve been trying to troubleshoot this for a day or so and I am stumped on what to do.
I can provide more information if needed.
I just figured out why it wasn’t working. I never included the shared libraries in the same folder as my project and never linked the header search paths. After cleaning up my project and rebuilding it recognized the Openssl library and it compiled.