• 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: Linking error on "release" build -- undefined symbols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking error on "release" build -- undefined symbols


  • Subject: Re: Linking error on "release" build -- undefined symbols
  • From: Karl Moskowski <email@hidden>
  • Date: Sat, 12 May 2007 17:15:49 -0400

Steven,

You probably have to add “–lcrypto” to the Other Linker Flags in your target. This may help:
<http://www.tacow.org/?p=21>


--Karl <email@hidden>


On 12-May-07, at 3:02 PM, email@hidden wrote:

Hello Folks,
I'm trying to build my first application in Cocoa (ppc with 10.4.9).
Under the "Debug" configuration
my program runs fine. Under the "Release" I get the following


Building target "PicPreview" of project "PicPreview" with configuration
"Release" -- (1 error)
Linking
/Users/Me/Projects/PicPreview/build/PicPreview.build/Release/ PicPreview.
build/Objects-normal/ppc/PicPireview (1 error)
Undefined symbols:
_MD5
_SHA1


/Users/Me/Projects/PicPreview/build/PicPreview.build/release/ PicPreview.
build/Objects-normal/ppc/CocoaCryptoHashing.o reference to undefined
_MD5


/Users/Me/Projects/PicPreview/build/PicPreview.build/release/ PicPreview.
build/Objects-normal/ppc/CocoaCryptoHashing.o reference to undefined
_SHA1
collect2: Id returned 1 exit status
Build failed




CryptoHashing extends NSString and NSData to include SHA1 and MD5
operations. The CryptoHashing.h file has
#import <openssl/md5.h>
#import <openssl/sha.h>

#import <Foundation/Foundation.h>

I got the code for CryptoHashing from open source. I searched the
archives and found a suggestion to
     "add the lib which contains the definition
      for MD5 to your project. In this
      case, /usr/lib/libcrypto.dylib"

A) I don't know if this is the solution
A.1) If it IS the solution, can someone point me to the docs on "adding
a lib" to my project


 B) I need "SHA1" because I'm trying to create "signatures" for
pictures, but I'm open to
    another function/solution if required

C) I copied the project over to an intel mac running 10.4.9 and got the
same errors, so
I'm guessing its not the processor type.

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: RS: autorelease with no pool in place
  • Next by Date: Re: RS: autorelease with no pool in place
  • Previous by thread: Re: Linking error on "release" build -- undefined symbols
  • Next by thread: To C++ users trying to use Cocoa
  • Index(es):
    • Date
    • Thread