Hi folks,

My C++ Windows/Linux project used to compile properly using the following items:

I recently updated my Boost distribution to version 1.44. Unfortunately, I now have the following BGL/linking error compiling with MinGW :

/path/to/liblocd_topology_manager.a(locTopology.o):locTopology.cpp:(.rdata$_ZZN5boost3putINS_26vec_adj_list_vertex_id_mapINS_8propertyINS_13vertex_root_tEiNS_11no_propertyEEEjEEEEvRKNS_17two_bit_color_mapIT_EENS_15property_traitsIS8_E8key_typeENS_18two_bit_color_typeEE17elements_per_char+0x0): multiple definition of `_elements_per_char'

/path/to/liblocd_topology_manager.a(locTopology.o):locTopology.cpp:(.rdata$_ZZN5boost3putINS_26vec_adj_list_vertex_id_mapINS_8propertyINS_13vertex_root_tEiNS_11no_propertyEEEjEEEEvRKNS_17two_bit_color_mapIT_EENS_15property_traitsIS8_E8key_typeENS_18two_bit_color_typeEE17elements_per_char+0x0): first defined here

I've checked the //www.boost.org/doc/libs/1_44_0/libs/graph/doc/trouble_shooting.html webpage, but I haven't seen any answer related to my problem.

For sure, the MinGW compiler version we use is pretty old. Since updating it would be very cumbersome in our case, I would like to be sure it's actually a compiler issue.

Thanks in advance for your advice.

Best regards,

--
Florian PONROY
Thales Land & Joint France
Tel. : +33(0)1 41 304 363
Fax : +33(0)1 41 303 907
Email : florian.ponroy@fr.thalesgroup.com