Menu

trouble building under Cygwin, on Windows

Anonymous
2012-11-17
2013-05-30
  • Anonymous

    Anonymous - 2012-11-17

    The configuration summary is ok:

       MATIO Configuration Summary

               C Compiler: gcc
                   CFLAGS:  -g -O2
         Shared Libraries: yes
         Static Libraries: yes
      default MAT version: MAT_FT_MAT5

    Features -----------------------------
    MAT v7.3 file support: no

    Packages -----------------------------
                     zlib:
                     hdf5:
                   MATLAB: /cygdrive/c/Program Files/MATLAB/R2012b/bin/matlab

    But make fails:

    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -g -O2 -c mat.c  -DDLL_EXPORT -DPIC -o .libs/mat.o
    mat.c: In function `Mat_VarReadInfo':
    mat.c:1710: warning: dereferencing `void *' pointer
    mat.c:1710: error: request for member `_flags' in something not a structure or union
    mat.c: In function `Mat_VarReadNext':
    mat.c:1762: warning: dereferencing `void *' pointer
    mat.c:1762: error: request for member `_flags' in something not a structure or union
    Makefile:419: recipe for target `mat.lo' failed

    I'm trying to look around and see if I can figure the problem out,

    and any help is much appreciated.

     
  • Anonymous

    Anonymous - 2012-11-17

    Version matio-1.3.4 actually compiles and produces a static library, but matio-1.5.0  fails with the above error :(

     
  • cch

    cch - 2012-12-11

    Can you post the code around the mentioned lines? I don't see anything that has _flags in it. The only data structure with _flags is matio_flags.

    Chris

     
  • filterbank10210

    filterbank10210 - 2012-12-14

    Got the same message, turned to be the gcc 4x being very particular about mat->fp where fp is a void * pointer but actually feof etc thinks it is a FILE * structure.

    fixed by casting (FILE *) mat->fp everywhere in that file…

    hope that helps.

     
  • Harsh Panchal

    Harsh Panchal - 2013-02-18

    Thanks, filterbank10210 this solution worked very well.

     

Log in to post a comment.