[gdal-dev] C4251 warnings in VS2017

Michel Dastous Michel.Dastous at bentley.com
Tue Jun 11 07:20:17 PDT 2019

Hi Mateusz,

Im asking because ticket #4099 was closed saying it should no longer be an issue with MSVC2015, so I was expecting it to be fixed in VS2017.  I can re-open the bug if needed but wanted to check if I was not the only one seeing this.



-----Original Message-----
From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of Mateusz Loskot
Sent: Tuesday, June 11, 2019 10:14 AM
To: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] C4251 warnings in VS2017

On Tue, 11 Jun 2019 at 14:46, Michel Dastous <Michel.Dastous at bentley.com> wrote:
> Sample warning message:
> 1>e:\mapserverlibs\include\ogr_featurestyle.h(89,41): warning C4251:  'OGRStyleTable::osLastRequestedStyleName': class 'CPLString' needs to have dll-interface to be used by clients of class 'OGRStyleTable'
> 1>e:\mapserverlibs\include\ogr_featurestyle.h(89,41): warning C4251:     CPLString osLastRequestedStyleName{};
> 1>e:\mapserverlibs\include\ogr_featurestyle.h(89,41): warning C4251:                                         ^
> Is it still an ongoing issue or am I missing some compile option?

What makes you think it is an ongoing issue, has an issue been even reported, opened, PR-ed?

There is no ongoing project or activity with aim to free GDAL from all warnings. Warnings are cleaned as they are noticed and some remain unnoticed for long or very long time.

Pull requests are welcome, as usual.

Best regards,
Mateusz Loskot, https://urldefense.proofpoint.com/v2/url?u=http-3A__mateusz.loskot.net&d=DwIGaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=Vg9kd7EbrjaIP-YEICx-iglQdpQnMN_4TPeo-J6QxGE&m=9sJ-wM3_RImX_NxoSn_ezaXoOYr2jBWDMfqznyuhWwo&s=gBeUkCEInaSRDuS5cGhZSYmIpejPfVdVfSudz-mTGqk&e=
gdal-dev mailing list
gdal-dev at lists.osgeo.org

More information about the gdal-dev mailing list