[gdal-dev] (no subject)

user gdal userofgdal at gmail.com
Sun Oct 6 21:32:03 PDT 2013


Friends,
I sent this mail on Friday. Request for a remedy. If someone can send a
built-in project (needn't be with a high end code) using MFC in VC++ 2008
in a Win Zip or RAR, it will be even better.

The error  (pl. see No. 8) I got is
f:\sw\GDALexperiment\GDALexperiment\header\cpl_port.h: fatal error C1189:
#error :  "Unexpected value for SIZEOF_UNSIGNED_LONG" GDALexperiment.cpp

I wish to use MFC which is part of Visual C++ 2008 and GDAL.


1. I downloaded GDAL 'latest stable release'  as a zip file from
http://trac.osgeo.org/gdal/wiki/DownloadSource


2. Extracted the zip file. Compiled the project to get gdal110.dll + many
.lib files + many .h files


3. Created a folder in my project ('ref'). Copied gdal110.dll into the ref
folder


4. Likewise created two folders 'header' and 'lib'. Copied lib files from
the download to lib and h files
    to header folders


5. In Tools|Options in Visual Studio in my project: accessed Projects and
Solutions: VC++      directories and mentioned header (Include Files), ref
(Reference Files) and lib (library files)


6. In CMyProjectdoc.h, included gdal_priv.h and cpl_conv.h just below #
pragma once


7. Declared a variable in the same file GDALDataset *indataset;


8. Compiled (without writing anything further) and got error(s): Unexpected
values...


Can anyone teach me where I went wrong and how to proceed correctly.



Thanking you,



B. Ramesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131007/eb6a29d8/attachment-0001.html>


More information about the gdal-dev mailing list