• 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: Dynamic library linking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic library linking


  • Subject: Re: Dynamic library linking
  • From: Ken Thomases <email@hidden>
  • Date: Sun, 24 Feb 2013 14:51:05 -0600

On Feb 24, 2013, at 2:09 PM, ecir hana wrote:

> and running "file python33" says:
>
>    python33 (for architecture i386): Mach-O dynamically linked shared
> library i386
>    python33 (for architecture x86_64): Mach-O 64-bit dynamically linked
> shared library x86_64
>
> The problem I have is that when try to run:
>
>    "gcc embed.c -I./include -L. -lpython33"
>
> if breaks with:
>
>    ld: library not found for -lpython33
>
> Please, does anyone know why?

The -l option expects a file with the prefix "lib" and a library suffix.  So, -lpython33 requires that the file be named libpython33.<something> (where something might be dylib or a or possibly a couple of other things).

When you have issues like this, you might try passing -v for verbose output.  It would probably tell you precisely which file names it tried.

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Dynamic library linking
      • From: ecir hana <email@hidden>
References: 
 >Dynamic library linking (From: ecir hana <email@hidden>)

  • Prev by Date: Re: NSSavePanel problem
  • Next by Date: Re: Dynamic library linking
  • Previous by thread: Dynamic library linking
  • Next by thread: Re: Dynamic library linking
  • Index(es):
    • Date
    • Thread