• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
lib crypto linking in Development config
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lib crypto linking in Development config


  • Subject: lib crypto linking in Development config
  • From: Jonathan Robson <email@hidden>
  • Date: Mon, 8 Jan 2007 19:41:13 -0600

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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Code-gen bugs compiling Boost with gcc/Xcode Obj-C++
      • From: Doug Hill <email@hidden>
  • Prev by Date: Re: Different classes instantiated from templates SHARE static members!!!
  • Next by Date: Re: lib crypto linking in Development config
  • Previous by thread: Re[2]: Running different scripts depending on Build Configuration
  • Next by thread: Code-gen bugs compiling Boost with gcc/Xcode Obj-C++
  • Index(es):
    • Date
    • Thread