[Openmcl-devel] Error: Can't resolve foreign symbol "sinf"

Gary Byers gb at clozure.com
Mon Dec 12 21:25:35 UTC 2011



On Mon, 12 Dec 2011, R. Matthew Emerson wrote:

> According to https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes, the
> option --as-needed is now the default on Ubuntu 11.10.
>
> It's possible to turn this behavior off.  The release notes above mention
> http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries
>
> So, we could say -Wl,--no-as-needed to the link command line instead of
> adding explicit references to sinf or exp or whatever.  I hesitate to
> use the word "aesthetic" with any of this, but I personally find the
> use of -Wl,--no-as-needed somewhat more aesthetically appealing (in a
> relative sense).
>
>

So -you're- the guy who actually reads release notes ?

I agree.  --no-as-needed seems to have been recognized by GNU ld for
a long time (quite possibly forever) so there seems to be little downside
in using it, and it's actually fairly clear.  (For a linker option.)




More information about the Openmcl-devel mailing list