Opened 10 years ago
Closed 10 years ago
#7060 closed Bugs (fixed)
polygon::voronoi doesn't compile
Reported by: | Owned by: | Lucanus Simonson | |
---|---|---|---|
Milestone: | To Be Determined | Component: | polygon |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | voronoi already defined gtl linker error | Cc: |
Description
If I add <boost/polygon/voronoi.hpp> in any .h file I'm getting some errors like:
error LNK2005: "public: static int const boost::polygon::detail::extened_exponent_fpt_traits<double>::kMaxSignificantExpDif" already defined in appclass.obj
I'm using /MD runtime, MSVS 2012 RC.
Change History (6)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Milestone: | To Be Determined → Boost 1.51.0 |
---|
comment:3 by , 10 years ago
Component: | None → polygon |
---|---|
Owner: | set to |
comment:4 by , 10 years ago
Keywords: | gtl linker error added |
---|---|
Milestone: | Boost 1.51.0 → To Be Determined |
Summary: | voronoi doesn't compile in big projects → polygon::voronoi doesn't compile |
comment:5 by , 10 years ago
Not sure what's the exact reason of those. Please make sure that you compiled the whole project with the same compiler options.
Anyway this is already fixed on trunk. I moved from using static field to an enum.
Andrii Sydrochuk
comment:6 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Temporary solution: comment line 78 in polygon/detail/voronoi_ctypes.hpp and add 54 in previous static const int kMaxSignificantExpDif definition