$ cat sqrt.c #include <math.h> int main (void) { float a;
(float)sqrt ((double)a); } $ /opt/TWWfsw/gcc343/bin/gcc sqrt.c -lm $ /opt/TWWfsw/gcc343/bin/gcc -O sqrt.c -lm ld: 0711-317 ERROR: Undefined symbol: .sqrtf ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status -- Summary: GCC using sqrtf() on AIX 5.1 when it doesn't exist Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bugzilla-gcc at thewrittenword dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-ibm-aix5.1.0.0 GCC host triplet: powerpc-ibm-aix5.1.0.0 GCC target triplet: powerpc-ibm-aix5.1.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22261