|
Boost Users : |
Subject: Re: [Boost-users] Boost::Polygon issue with including in project
From: Simonson, Lucanus J (lucanus.j.simonson_at_[hidden])
Date: 2011-03-24 11:51:05
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_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Chris Stylianou
Sent: Thursday, March 24, 2011 3:30 AM
To: boost-users_at_[hidden]
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
[cid:714404515_at_24032011-0A39]
Malvern Hills Science Park
Geraldine Road
Malvern
England
WR14 3SZ
t: +44 (0)1684 585240
e: chris_at_[hidden]<mailto:chris_at_[hidden]>
w: www.borwell.com
"Making IT work for you"
P Please consider the environment before printing this email
_______________________________________________________________
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Simonson, Lucanus J
Sent: 23 March 2011 16:03
To: boost-users_at_[hidden]
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net