Opened 10 years ago

Closed 10 years ago

#7060 closed Bugs (fixed)

polygon::voronoi doesn't compile

Reported by: archidevil52@… 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 archidevil52@…, 10 years ago

Temporary solution: comment line 78 in polygon/detail/voronoi_ctypes.hpp and add 54 in previous static const int kMaxSignificantExpDif definition

comment:2 by anonymous, 10 years ago

Milestone: To Be DeterminedBoost 1.51.0

comment:3 by archidevil52@…, 10 years ago

Component: Nonepolygon
Owner: set to Lucanus Simonson

comment:4 by anonymous, 10 years ago

Keywords: gtl linker error added
Milestone: Boost 1.51.0To Be Determined
Summary: voronoi doesn't compile in big projectspolygon::voronoi doesn't compile

comment:5 by sydorchuk.andriy@…, 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 Lucanus Simonson, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.