This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
builtin sin(), cos() not working on VMS
- To: egcs at cygnus dot com
- Subject: builtin sin(), cos() not working on VMS
- From: "Klaus Kaempf" <kkaempf at progis dot de>
- Date: Tue, 9 Jun 1998 11:42:06 +0200 (MET DST)
When compiling libstdc++ with egcs (or gcc) on openVMS/Alpha, the
following error occurs.
The openVMS/Alpha math.h uses DEC C math functions with different
assembler symbol names:
math.h: extern double sin (double _x) __asm ("MATH$SIN_T");
libstdc++/fcomplex.cc calls sin() with a float argument with
doesn't match the math.h prototype (double argument), so the
built-in sin prototype is matched (why ??).
Since there is no built-in sin function, the resulting object
code lists 'sin' as an undefined symbol which isn't matched
by any library.
Compiling with "-fno-builtin" or changing the prototype declaration
in math.h to have a 'float' argument is a (temporary) solution.
Comments anyone ?
--
proGIS Software E-Mail: kkaempf@progis.de
Dipl.-Inform. Klaus K"ampf Fax: 0241-47067-29
Jakobstr. 117 Voice: 0241-47067-11
D-52064 Aachen WWW: http://www.progis.de