This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++/8197: std::sin(float) causes undefined reference to sinf
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: ehrhardt at mathematik dot uni-ulm dot de, gcc-gnats at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Mon, 28 Oct 2002 10:21:41 -0800
- Subject: Re: libstdc++/8197: std::sin(float) causes undefined reference to sinf
- References: <20021026134601.13240.qmail@sources.redhat.com><m31y6b8pxw.fsf@soliton.integrable-solutions.net>
>| The problem seems to be that std::sin(float) is an inline function defined in
>| cmath. This inline function uses __builtin_sinf which in turn generates
>| a reference to a function sinf.
>| This function even exists and is exported from stubs.o:
>|
>| turing# nm sparc-sun-solaris2.9/libstdc++-v3/libmath/stubs.o |grep sinf
>| 00000714 T sinf
>|
>| However, in libstdc++.so the symbol sinf is private:
Phil answered this.
There is no reason not to export this, or add new symbols to export in a
new interface (GLIBCPP_3.2.1). You might try editing config/link-map.gnu.
-benjamin