<div dir="ltr"><div>I can live with not being elegant, my concern is only that it involves changing upstream sources.</div><div><br></div><div>But yes it seems to be that there is no other viable solution so I will go ahead with it.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre 20 maj 2022 kl 19:40 skrev Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Le 20/05/2022 à 19:00, Björn Harrtell a écrit :<br>
> For the record I can't see the #define trick as reasonable/acceptable <br>
> if i understand it correctly.<br>
<br>
If you're saying it is not elegant, obviously, it isn't, but that works. <br>
Or is your concern something else ? All that pertains to the <br>
<a href="https://en.wikipedia.org/wiki/One_Definition_Rule" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/One_Definition_Rule</a><br>
<br>
Basically the idea would be that MapServer set some defines that <br>
override the default FlatGeobuf & flatbuffers namespaces<br>
<br>
An example of that in another project is in <br>
<a href="https://github.com/SAP/odbc-cpp-wrapper/pull/29/files" rel="noreferrer" target="_blank">https://github.com/SAP/odbc-cpp-wrapper/pull/29/files</a> and <br>
<a href="https://github.com/qgis/QGIS/commit/adcb45971bb84a40d909b43d4aace292e8d06e70" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/commit/adcb45971bb84a40d909b43d4aace292e8d06e70</a> <br>
: here the potential conflict was between the embedded copy of the <br>
odbc-cpp-wrapper library in QGIS, and the external odbc-cpp-wrapper <br>
library that the GDAL SAP Hana driver can link to.<br>
<br>
The only other way of solving that would be for GDAL and MapServer to <br>
link to an external & identical version of FlatGeobuf & flatbuffers <br>
libraries, but that would require them to be packaged etc, which <br>
wouldn't be very practical.<br>
<br>
Even<br>
<br>
-- <br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
My software is free, but my time generally not.<br>
<br>
_______________________________________________<br>
MapServer-dev mailing list<br>
<a href="mailto:MapServer-dev@lists.osgeo.org" target="_blank">MapServer-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</blockquote></div></div>