Changes between Version 5 and Version 11 of Ticket #1005


Ignore:
Timestamp:
Sep 9, 2013, 7:20:32 PM (11 years ago)
Author:
csfreebird
Comment:

Replying to ajolma:

I've seen this problem, and fixing it was simple although I didn't understand what was going on. cpl_vsi.h had to be changed a bit to declare VSIStatBufL twice(!) - also outside a #ifdef which should have been included. Anyway, I don't see it anymore in the newer versions of with the newer gcc/preprocessor in MinGW.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1005

    • Property Status assignedreopened
    • Property Keywords CPL added
  • Ticket #1005 – Description

    v5 v11  
     1Hi, I want to know how to declare this twice for bypassing this problem. I ran into the same problem when compiling GDAL source using clang 3.1.
     2
     3
     4{{{
     5../../port/cpl_conv.cpp:2464:21: error: variable has incomplete type 'VSIStatBufL' (aka '__stat64')
     6        VSIStatBufL sStatBuf;
     7                    ^
     8../../port/cpl_vsi.h:153:16: note: forward declaration of '__stat64'
     9typedef struct VSI_STAT64_T VSIStatBufL;
     10               ^
     11../../port/cpl_config.h:108:24: note: expanded from macro 'VSI_STAT64_T'
     12#  define VSI_STAT64_T __stat64
     13}}}
     14
    115When I'm trying to compile gdal with mingw, I get the following error message :
    216