[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
conflicting types for 'tmpfile_create'
From: |
Michel Boaventura |
Subject: |
conflicting types for 'tmpfile_create' |
Date: |
Wed, 12 May 2010 23:00:06 -0300 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- conflicting types for 'tmpfile_create',
Michel Boaventura <=