Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3960 closed defect (fixed)

[windows] fix cpl_port.h of visual c++ for use with MinGW

Reported by: jef Owned by: warmerdam
Priority: normal Milestone: 1.8.1
Component: ConfigBuild Version: unspecified
Severity: normal Keywords:
Cc:

Description

Trying to use GDAL built with Visual C++ leads to problems when using the libraries with MinGW (as done for GRASS in OSGeo4W). The attached patch should fix it.

Attachments (1)

cpl_config.h.vc.diff (754 bytes ) - added by jef 13 years ago.

Download all attachments as: .zip

Change History (3)

by jef, 13 years ago

Attachment: cpl_config.h.vc.diff added

comment:1 by warmerdam, 13 years ago

Component: defaultConfigBuild
Milestone: 1.8.1
Resolution: fixed
Status: newclosed

Change applied in trunk (r21708) and 1.8 branch (r21709).

I am surprised to find cpl_config.h.vc is used for mingw. In theory it might make sense to use a distinct config file for mingw. However, the changes are harmless so I've applied them.

in reply to:  1 comment:2 by jef, 13 years ago

Replying to warmerdam:

Change applied in trunk (r21708) and 1.8 branch (r21709).

I am surprised to find cpl_config.h.vc is used for mingw. In theory it might make sense to use a distinct config file for mingw. However, the changes are harmless so I've applied them.

GRASS in OSGeo4W (and I think also WinGRASS) is build against the GDAL in OSGeo4W. And apparently the version derived from cpl_config.h.vc is the only one shipped with OSGeo4W. Beware: two unverified assumptions here - but the patch applies cleanly to the OSGeo4W version too.

See also:

  1. (osgeo4w-dev) GDAL 1.8 - Switch Thrown
  2. GRASS #1271
Note: See TracTickets for help on using tickets.