• 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
Re: lib crypto linking in Development config
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lib crypto linking in Development config


  • Subject: Re: lib crypto linking in Development config
  • From: Jonathan Robson <email@hidden>
  • Date: Mon, 8 Jan 2007 20:28:21 -0600

Nope, double checked - it is turned off for Debug and Release. I have now got it to work by editing 'project.pbxproj' directly with TextEdit and setting ZERO_LINK = NO. But it was definitely not checked in the GUI :-(. Maybe an xcode bug?

Cheers
Jonathan

On Jan 8, 2007, at 8:24 PM, Daniel Birns wrote:

Try turning off zerolink.  It's one of the project or target checkboxes.  You probably already have it turned off for release.





To: email@hidden
From: email@hidden
Date: Mon, 8 Jan 2007 19:41:13 -0600
Subject: lib crypto linking in Development config

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


Get free, personalized online radio with MSN Radio powered by Pandora. Try it!

 _______________________________________________
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

  • Prev by Date: lib crypto linking in Development config
  • Next by Date: Re: How to debug in xcode a ROOT-level executables?
  • Previous by thread: Code-gen bugs compiling Boost with gcc/Xcode Obj-C++
  • Next by thread: Saturn not recognizing a file as compiled with -pg
  • Index(es):
    • Date
    • Thread