[Gdal-dev] compile problem gdal 1.4 on windows with postgresql support

Dolf Andringa dolf.andringa at elcyion.nl
Thu Jan 18 09:26:41 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hello Everybody,

I am trying to compile gdal on windows XP. I have MS Visual studio
2005 pro and the windows sdk installed.
Compiling goes fine with the standard nmake.opt file. I want to
include PostgreSQL support though, so I specified the location of the
PostgreSQL 8.1 include and lib dirs. I have the PostgreSQL 8.1
development stuff installed.
During compilation though, I get the error that libpq-fe.h could not
be found.
I checked the include dir, and indeed I do not have libpq-fe.h but
libpq-fs.h
If I change the filename from libpq-fs.h to libpq-fe.h I get syntax
errors though during compilation.
The syntax errors are reported to be in
<gdalsourcedir>\ogr\ogrsf_frmts\pg\ogr_pg.h on line 159
"missing ; before identifier GeometryToOID". There are many more
syntax errors after that but no errors before this error.
Does anybody know why I am getting this error?  Does it have anything
to do with the postgresql version? Hope somebody can shed some light
in it.
Thanks,

Dolf.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFFr4Og4jCQQ91QiKgRAqjiAKCmVBl7/9/rQbbCSXwJYbssC64Q7wCgoRBo
nAF9GoJdLL2Zw2iX6MIagrI=
=9Veq
-----END PGP SIGNATURE-----




More information about the Gdal-dev mailing list