Re: [gdal-dev] Using GDAL with opencv in C++ there is errors under windows

2023-03-07 Thread Raivo Rebane
Hi There was problem in libraries. VIsual Studio seeks firstly PostGIS libraries what is older ones Now I set Firstly seek from separately installed GDAL libraries. But conflict in twice installed PROJ packages exist. So, I cant use PROJ package functions. Can anybody helps me ? Regards Ra

Re: [gdal-dev] Using GDAL with opencv in C++ there is errors under windows

2023-03-07 Thread Mateusz Loskot
On Tue, 7 Mar 2023 at 09:32, Raivo Rebane wrote: > > I minimized the program : > > #include > #include > #include > #include > > int main() > { > GDALAllRegister(); > GDALDataset* dataset = > static_cast(GDALOpen("634632_2012_tava.tiff", GA_ReadOnly)); > GDALClose(dataset); > >

Re: [gdal-dev] Using GDAL with opencv in C++ there is errors under windows

2023-03-07 Thread Raivo Rebane
Hi again I minimized the program : #include #include #include #include int main() {     GDALAllRegister();     GDALDataset* dataset = static_cast(GDALOpen("634632_2012_tava.tiff", GA_ReadOnly));     GDALClose(dataset);     return 0; } but it gives the same errors ? If I remove #includ

[gdal-dev] Using GDAL with opencv in C++ there is errors under windows

2023-03-06 Thread Raivo Rebane
Hi I am big problem. My program gives errors: Severity    Code    Description    Project    File    Line Suppression State Warning    C4251    'CPLJSONObject::m_osKey': class 'std::basic_string,std::allocator>' needs to have dll-interface to be used by clients of class 'CPLJSONObject'    proj