Boost logo

Geometry :

Subject: [ggl] error: _hypot was not declared in this scope
From: Mateusz Loskot (mateusz)
Date: 2009-05-14 11:19:11


Barend Gehrels wrote:
> 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.

May be instead of using POSIX (and fake-POSIX from Windows)
implementation of hypot with the one from Boost Math toolkit.

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

I've also added missing ggl:: qualifier for projection in the tests.

OK, now all 43 tests compile using GCC 4.3.

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

Geometry list run by mateusz at loskot.net