• 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: ssl.h linking error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssl.h linking error


  • Subject: Re: ssl.h linking error
  • From: Karl Moskowski <email@hidden>
  • Date: Fri, 26 May 2006 09:32:06 -0400

I had a similar problem in my app when using some encoding functions from the SSL libraries (it didn't work without ZeroLink).

Try changing the Other Linker Flags setting in the Release build configuration to:

	-lcrypto $(OTHER_LDFLAGS)

--Karl  <email@hidden>

On May 25, 2006, at 7:35 PM, dancedrummer wrote:

I'm a bit of a lightweight.  I'm trying to generate an sha-1 hash,
works fine when I compile with the Debug build style but I get the
following error when I compile with the Release build style.

Undefined symbols:
_SHA1
collect2: ld returned 1 exit status

I'm pretty sure it's a linking error as I can get it to compile
properly by simply turning on ZeroLink in the Release build style
settings but of course that is no good for an actual release.

In my opinion, it's not much good for development either. As you've seen, it hides linker errors; the result can often be that you spend more time debugging obscure errors than ZeroLink saves.

I am including
#include <openssl/sha.h>

That's the first half of the puzzle... The second half is linking against the OpenSSL framework. Did you do that?

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ssl.h linking error
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Determining how the app is run (intel/ppc/rosetta/os version)?
  • Next by Date: Re: NSConnection crashes
  • Previous by thread: Re: ssl.h linking error
  • Next by thread: Re: ssl.h linking error
  • Index(es):
    • Date
    • Thread