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
Raivo
On 07.03.23 11:28, Raivo Rebane wrote:
I use Visual Studio and there is defined for linking following libraries:
gdal.lib
opencv_calib3d460d.lib
opencv_core460d.lib
opencv_dnn460d.lib
opencv_features2d460d.lib
opencv_flann460d.lib
opencv_gapi460d.lib
opencv_highgui460d.lib
opencv_imgcodecs460d.lib
opencv_imgproc460d.lib
opencv_ml460d.lib
opencv_objdetect460d.lib
opencv_photo460d.lib
opencv_stitching460d.lib
opencv_video460d.lib
opencv_videoio460d.lib
as I use OpenCV.
What library is neede for linker ?
As a matter of fact this source compiles, links and runs without
problems day after yesterday
Regards
Raivo
On 07.03.23 10:46, Mateusz Loskot wrote:
On Tue, 7 Mar 2023 at 09:32, Raivo Rebane <[email protected]> wrote:
I minimized the program :
#include <gdal.h>
#include <gdal_priv.h>
#include <iostream>
#include <conio.h>
int main()
{
GDALAllRegister();
GDALDataset* dataset =
static_cast<GDALDataset*>(GDALOpen("634632_2012_tava.tiff",
GA_ReadOnly));
GDALClose(dataset);
return 0;
}
The errors like
LNK2001 unresolved external symbol
typically mean a program is not being linked against required libraries.
You need to refer to documentation of the compilation toolset you are
using
in order to learn how to configure build of your program properly,
how to pass gdal.lib to its linker, etc.
If you are using CMake, you can follow this recommendation
https://gdal.org/development/cmake.html
Best regards,
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev