Hello,
I'm getting this error trying to compile pspp with mingw:
../pspp/src/libpspp/tmpfile.c:51: error: conflicting types for
'tmpfile_create'
../pspp/src/libpspp/tmpfile.h:26: note: previous declaration of
'tmpfile_create' was here
../pspp/src/libpspp/tmpfile.c:65: error: conflicting types for
'tmpfile_destroy'
../pspp/src/libpspp/tmpfile.h:27: note: previous declaration of
'tmpfile_destroy' was here
../pspp/src/libpspp/tmpfile.c: In function 'tmpfile_destroy':
../pspp/src/libpspp/tmpfile.c:70: warning: passing argument 1 of
'tmpfile_error' from incompatible pointer type
../pspp/src/libpspp/tmpfile.h:30: note: expected 'const struct tmpfile
*' but argument is of type 'struct rpl_tmpfile *'
../pspp/src/libpspp/tmpfile.c: In function 'do_seek':
../pspp/src/libpspp/tmpfile.c:87: warning: passing argument 1 of
'tmpfile_error' from incompatible pointer type
../pspp/src/libpspp/tmpfile.h:30: note: expected 'const struct tmpfile
*' but argument is of type 'struct rpl_tmpfile *'
../pspp/src/libpspp/tmpfile.c: In function 'do_read':
../pspp/src/libpspp/tmpfile.c:112: warning: passing argument 1 of
'tmpfile_error' from incompatible pointer type
../pspp/src/libpspp/tmpfile.h:30: note: expected 'const struct tmpfile
*' but argument is of type 'struct rpl_tmpfile *'
../pspp/src/libpspp/tmpfile.c: In function 'do_write':
../pspp/src/libpspp/tmpfile.c:134: warning: passing argument 1 of
'tmpfile_error' from incompatible pointer type
../pspp/src/libpspp/tmpfile.h:30: note: expected 'const struct tmpfile
*' but argument is of type 'struct rpl_tmpfile *'
../pspp/src/libpspp/tmpfile.c: At top level:
../pspp/src/libpspp/tmpfile.c:147: error: conflicting types for
'tmpfile_read'
../pspp/src/libpspp/tmpfile.h:28: note: previous declaration of
'tmpfile_read' was here
../pspp/src/libpspp/tmpfile.c:155: error: conflicting types for
'tmpfile_write'
../pspp/src/libpspp/tmpfile.h:29: note: previous declaration of
'tmpfile_write' was here
../pspp/src/libpspp/tmpfile.c:163: error: conflicting types for
'tmpfile_error'
../pspp/src/libpspp/tmpfile.h:30: note: previous declaration of
'tmpfile_error' was here
If I move de definition of struct tmpfile from tmpfile.c to tmpfile.h,
it works. Any ideas?
Michel
_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev