Chris,
 
Line 147 of transform.hpp is as follows:
 
    ESU = 2, EAST_SOUTH_UP = 2, ES = 2, EAST_SOUTH = 2, FLIP_Y       = 2,
 
These are enum value definitions.  I suspect that what is happening is that ESU, or more likely ES is a defined macro in some header file included before Polygon.hpp.  After the expansion of that macro the code no longer makes sense.
 
I suggest including the Polygon.hpp first since it doesn't depend on any other code.  If you include polygon.hpp in a header file be sure that header file gets included before others that might define macros that conflict with names used by the library.
 
Regards,
Luke


From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Chris Stylianou
Sent: Thursday, March 24, 2011 3:30 AM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] Boost::Polygon issue with including in project

Hi Luke, here is the whole list. We are using gcc 4.3.3 with Boost 1.45.0, but it has also been tested with 1.46.1 with the same error output.

 

In file included from ..../include/boost/polygon/polygon.hpp:24,

                 from accessors/shapes/Polygon.h:18,

                 from accessors/shapes/Polygon.cc:8:

..../include/boost/polygon/transform.hpp:147: error: expected identifier before numeric constant

 ...

 

 Thanks

Chris Stylianou

_______________________________________________________________

borwell

Description: Description: Description: Description: finalist_logo - email sig

Malvern Hills Science Park

Geraldine Road

Malvern

England

WR14 3SZ

 

t: +44 (0)1684 585240

e: chris@borwell.com

w: www.borwell.com

 

"Making IT work for you"

 

P Please consider the environment before printing this email

_______________________________________________________________

 

From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Simonson, Lucanus J
Sent: 23 March 2011 16:03
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] Boost::Polygon issue with including in project

 

Is line 147 of transform.hpp your first syntax error?  Can you attach the complete listing of syntax errors generated as well as the compiler you are using?  Also, which version of boost are you using?

 

Thanks,
Luke