osgPlugins/zip/unzip.cpp includes a function "FileExists" in the global namespace which is a very common function name.
When linking this in static-lib mode on linux, it conflicts with gdal which has the same function name in the global namespace and is a dependency.
The conflict also happens for inflate_copyright variable
I believe the convention here is to mark all local functions or variables as "static" so they do not collide with other functions of similiar name.
More details on how vcpkg incorporates a fix are here:
https://github.com/microsoft/vcpkg/pull/15374/files#
osgPlugins/zip/unzip.cpp includes a function "FileExists" in the global namespace which is a very common function name.
When linking this in static-lib mode on linux, it conflicts with gdal which has the same function name in the global namespace and is a dependency.
The conflict also happens for inflate_copyright variable
I believe the convention here is to mark all local functions or variables as "static" so they do not collide with other functions of similiar name.
More details on how vcpkg incorporates a fix are here:
https://github.com/microsoft/vcpkg/pull/15374/files#