Opened 10 years ago

Last modified 9 years ago

#5699 closed defect

No drivers found — at Initial Version

Reported by: nadams Owned by: warmerdam
Priority: normal Milestone:
Component: Docs Version: 1.11.1
Severity: normal Keywords:
Cc:

Description

After building from source on Windows 7 with MS Visual Studio 2008, no drivers are found by GDAL.

In the following application, all of the cerr statements get hit:

#include <iostream> #include "gdal.h" #include "gdal_priv.h" #include "ogr_api.h"

int main(int argc, char *argv[]) {

GDALAllRegister();

GDALDriverManager dm; dm.AutoLoadDrivers(); int count = dm.GetDriverCount(); if( count == 0 )

std::cerr << "Exactly " << count << " drivers found by GDALDriverManager.\n" << std::endl;

GDALDriver *poDriver = (GDALDriver*) GDALGetDriverByName("ESRI Shapefile"); if( poDriver == NULL )

std::cerr << "ESRI Shapefile driver not available.\n" << std::endl;

GDALDataset* poDS = (GDALDataset*) GDALOpen( "Political_VotingPrecincts.shp", GA_ReadOnly ); if( poDS == NULL )

std::cerr << "Open failed.\n" << std::endl;

return 0;

}

Change History (1)

by nadams, 10 years ago

Attachment: nmake.opt added
Note: See TracTickets for help on using tickets.