While building 6.2.0 on Solaris 10 SPARC with gcc 7.3.0, gmake ends thusly:
liboctave/wrappers/iconv-wrappers.c:35:1: error: conflicting types for 'octave_iconv_open_wrapper' octave_iconv_open_wrapper (const char *tocode, const char *fromcode) ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from liboctave/wrappers/iconv-wrappers.c:32:0: liboctave/wrappers/iconv-wrappers.h:34:1: note: previous declaration of 'octave_iconv_open_wrapper' was here octave_iconv_open_wrapper (const char *tocode, const char *fromcode); ^~~~~~~~~~~~~~~~~~~~~~~~~ liboctave/wrappers/iconv-wrappers.c:41:1: error: conflicting types for 'octave_iconv_close_wrapper' octave_iconv_close_wrapper (iconv_t cd) ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from liboctave/wrappers/iconv-wrappers.c:32:0: liboctave/wrappers/iconv-wrappers.h:37:1: note: previous declaration of 'octave_iconv_close_wrapper' was here octave_iconv_close_wrapper (void *cd); ^~~~~~~~~~~~~~~~~~~~~~~~~~
The second one is an issue but I don’t get the first one. Both declataions look the same to me. Any help would be appreciated.
OK, I get it. The declaration was split over two lines so the error output only showed the second lines (which are identical). In the first error the function is declared “extern void *” in the .h file and “iconv_t” in the c file. Which one is right?