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

Linking error on "release" build -- undefined symbols


  • Subject: Linking error on "release" build -- undefined symbols
  • From: "Smith, Steven (MCP)" <email@hidden>
  • Date: Sat, 12 May 2007 14:47:27 -0000
  • Thread-topic: Linking error on "release" build -- undefined symbols

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.

Thanks in advance,

Steven
_______________________________________________

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

  • Follow-Ups:
    • Re: Linking error on "release" build -- undefined symbols
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Status Item problems
  • Next by Date: To C++ users trying to use Cocoa
  • Previous by thread: Re: Status Item problems
  • Next by thread: Re: Linking error on "release" build -- undefined symbols
  • Index(es):
    • Date
    • Thread