Re: Dynamic library linking
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