Hi,
This is sorted. Turns out that adding the macro before any class/code works perfectly.
Cheers
Sean.
-----Original Message-----
From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Mateusz Loskot
Sent: 25 January 2014 21:13
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] [Geometry] Issues when registering a windows point type
On 25 January 2014 20:49, Sean Farrow
I’m having an Issue when trying to register a windows POINT type.
I’m registering the Point structure from windef.h as follows:
BOOST_GEOMETRY_REGISTER_POINT_2D(POINT, LONG, boost::geometry::cs::cartesian, x, y);
I’m getting the following in my build log:
[...] 1>c:\work\pantheon studios\o2\disesupport\supportfunctions.cpp(37): error C3083: 'cs': the symbol to the left of a '::' must be a type
1>c:\work\pantheon studios\o2\disesupport\supportfunctions.cpp(37): error C2039: 'cartesian' : is not a member of 'boost::geometry'
Check if you include all required headers, if you include them selectively or follow this example and include the two: all-in-one + registration header: http://www.boost.org/doc/libs/1_55_0/libs/geometry/doc/html/geometry/referen... Best regards, -- Mateusz Łoskot, http://mateusz.loskot.net _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users