Boost logo

Geometry :

Subject: [ggl] error: _hypot was not declared in this scope
From: Barend Gehrels (Barend.Gehrels)
Date: 2009-05-14 11:01:37


Hi Mateusz,

Oops. I checked everything, also using GCC, and didn't get this at my
place, sorry. Using gcc 4.3.0

It solves the warning from MSVC that hypot had to be _hypot.
1>c:\svn\geolib\trunk\src\cpp\library\gl\boost\ggl/projections/proj/tpeqd.hpp(89)
: warning C4996: 'hypot': The POSIX name for this item is deprecated.
Instead, use the ISO C++ conformant name: _hypot. See online help for
details.
1> C:\Program Files\Microsoft Visual Studio
8\VC\include\math.h(455) : see declaration of 'hypot'

Maybe we need a headerfile or so.

I've changed it back. Just checked (got another compilation error in
transform :-) , OK already solved).

Regards, Barend

Mateusz Loskot wrote:
> Hi,
>
> I've forgot about one error I noticed last night.
>
> When I'm trying to build projections.cpp test program using GCC, I'm
> getting error message(s) about undeclared _hypot:
>
> gcc.compile.c++ bin/projections.test/gcc-4.3.3/debug/projections.o
> In file included from ../../../boost/ggl/projections/factory.hpp:46,
> from projections/projections.cpp:17:
> ../../../boost/ggl/projections/proj/geos.hpp: In member function ?void
> ggl::projection::impl::geos::base_geos_ellipsoid<LatLong, Cartesian,
> Parameters>::fwd(typename
> ggl::projection::impl::base_t_fi<ggl::projection::impl::geos::base_geos_ellipsoid<LatLong,
> Cartesian, Parameters>, LatLong, Cartesian, Parameters>::LL_T&, typename
> ggl::projection::impl::base_t_fi<ggl::projection::impl::geos::base_geos_ellipsoid<LatLong,
> Cartesian, Parameters>, LatLong, Cartesian, Parameters>::LL_T&, typename
> ggl::projection::impl::base_t_fi<ggl::projection::impl::geos::base_geos_ellipsoid<LatLong,
> Cartesian, Parameters>, LatLong, Cartesian, Parameters>::XY_T&, typename
> ggl::projection::impl::base_t_fi<ggl::projection::impl::geos::base_geos_ellipsoid<LatLong,
> Cartesian, Parameters>, LatLong, Cartesian, Parameters>::XY_T&) const?:
> ../../../boost/ggl/projections/proj/geos.hpp:92: error: there are no
> arguments to ?_hypot? that depend on a template parameter, so a
> declaration of ?_hypot? must be available
>
>
> It looks like it was introduced during recent update to the proj stuff
> generator.
>
> Best regards,
>


Geometry list run by mateusz at loskot.net