#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)
Change History (3)
Changed 10 years ago by
Attachment: | cpl_config.h.vc.diff added |
---|
comment:1 follow-up: 2 Changed 10 years ago by
Component: | default → ConfigBuild |
---|---|
Milestone: | → 1.8.1 |
Resolution: | → fixed |
Status: | new → closed |
comment:2 Changed 10 years ago by
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:
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.