• 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: dyld: "Library not loaded:" Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dyld: "Library not loaded:" Error


  • Subject: Re: dyld: "Library not loaded:" Error
  • From: Dan Ribe <email@hidden>
  • Date: Fri, 14 Aug 2009 11:18:27 +0530

You need to update the library path in your application binary using install_name_tool command. You should add this as a build phase so that this happens automatically when you create a build.

You can use "otool -L <your binary name>" command to see the current paths being used by your binary. thanks

On Fri, Aug 14, 2009 at 10:38 AM, n179911 <email@hidden> wrote:
Hi,

When I run my XCode program, I get this
dyld: Library not loaded: libboost_system-xgcc40-mt-1_39.dylib
 Referenced from: /Users/n179911/Documents/ServerXCode/build/Debug/ServerXCode
 Reason: image not found

But I am not sure why I am getting this 'Library not loaded' error.

I have added '/Users/n19911/src/boost_1_39_0/stage/lib' to my 'Library
Search Paths'  and I have added '-lboost_system=xgc40-mt' in 'Other
Linker Flags'.
With these, I won't even able to link successfully.

And I have double checked that "libboost_system-xgcc40-mt-1_39.dylib"
is at "/Users/n179911/src/boost_1_39_0/stage/lib"

$ ls -la libboost_system-xgcc40-mt-1_39.dylib
-rwxr-xr-x  1 n179911  staff  30808 Aug 13 21:22
libboost_system-xgcc40-mt-1_39.dylib*
$ pwd
/Users/n179911/src/boost_1_39_0/stage/lib

Please tell me if you have any idea.

Thank you.
 _______________________________________________
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

 _______________________________________________
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:
    • Re: dyld: "Library not loaded:" Error
      • From: n179911 <email@hidden>
References: 
 >dyld: "Library not loaded:" Error (From: n179911 <email@hidden>)

  • Prev by Date: dyld: "Library not loaded:" Error
  • Next by Date: Re: dyld: "Library not loaded:" Error
  • Previous by thread: dyld: "Library not loaded:" Error
  • Next by thread: Re: dyld: "Library not loaded:" Error
  • Index(es):
    • Date
    • Thread