stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-570) std::pow(const std::complex&) undefined
Date Fri, 21 Sep 2007 22:06:56 GMT
std::pow(const std::complex&) undefined
---------------------------------------

                 Key: STDCXX-570
                 URL: https://issues.apache.org/jira/browse/STDCXX-570
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 26. Numerics
    Affects Versions: 4.3
         Environment: EDG eccp 3.9/Solaris, Sun C++ 
            Reporter: Martin Sebor
            Assignee: Martin Sebor
            Priority: Critical
             Fix For: 4.2


The example complex.cpp fails to compile with EDG eccp and link with Sun C++ with the following
error(s).

EDG eccp error:

eccp -c -I$(TOPDIR)/include/ansi -D_RWSTDDEBUG    -I$(TOPDIR)/include -I$(BUILDDIR)/include
-I$(TOPDIR)/examples/include  -A -x --template_directory=$(BUILDDIR)/lib -g   --display_error_number
--remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815   $(TOPDIR)/examples/manual/complex.cpp
"$(TOPDIR)/include/complex", line 780: error #821: 
          extern inline function "std::pow(const std::complex<_TypeT> &, const
          std::complex<_TypeT> &) [with _TypeT=double]" was referenced but not
          defined
  pow (const complex<_TypeT>&, const complex<_TypeT>&);
  ^

1 error detected in the compilation of "$(TOPDIR)/examples/manual/complex.cpp".
gmake: *** [complex.o] Error 2


Sun C++ error:

CC -c -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include  -library=%none
-O  -m64 +w -errtags -erroff=hidef   $(TOPDIR)/examples/manual/complex.cpp
"$(TOPDIR)/examples/manual/complex.cpp", Error, noinlbody: The function std::pow<double>(const
std::complex<double>&, const std::complex<double>&) has not had a body
defined.
1 Error(s) detected.
gmake: *** [complex.o] Error 1


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message