Hi There,
I am having an issue getting a simple MD5 call to work when in debug mode, my small test app is...
#import <Foundation/Foundation.h> #include <openssl/md5.h>
int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here... unsigned char md[MD5_DIGEST_LENGTH]; const char *data = ""; MD5( (const unsigned char *)data, strlen(data), md ); printf("%s", md); [pool release]; return 0; }
when linked in the debug config I get this error when I try to run...
[Session started at 2007-01-08 19:33:12 -0600.] ZeroLink: unknown symbol '_MD5'
If I change to the release config it works fine...
MD5 has exited due to signal 6 (SIGABRT). [Session started at 2007-01-08 19:33:26 -0600.] \355b\207S.\2066^\204\222\277\305
\214 \373\377\277T\373\377\277\370\372\377\277\336 MD5 has exited with status 0.
I am a newbie to xcode, but I assume this is something to do with zerolink? On the other linker flags I have added ‘-lcrypto’ for both configurations and ensured that zerolink is not selected for either config, however this seems to get ignored for debug config.
Does anyone know how I can link in libcrypto under a debug config?
I also checked via the xcodebuilder cmdline tool, the library is not getting linked for debug, but it is for release.
Any help is much appreciated.
Thank you, Jonathan |